nadako / Ash-Haxe

Port of Ash entity framework to Haxe
Other
131 stars 37 forks source link

Macro Nodes #3

Open mikecann opened 11 years ago

mikecann commented 11 years ago

Just a suggestion. Have you considered using macros to generate nodes, so the user doesnt have to create lots of Node classes?

Not thought through all the problems with this but something like engine.getNodeList({pos:Position, disp:Display}); or something like that?

nadako commented 11 years ago

Yep this could be a nice feature, but it may be challenging to implement in an efficient haXe-way (so no realtime overhead, no nodelist duplication, more static checks and stuff). Feel free to contribute :-))