scriptorum / flaxen

Haxe game engine with entity component system
MIT License
26 stars 2 forks source link

ComponentSet improvements #12

Open scriptorum opened 9 years ago

scriptorum commented 9 years ago

Instead of doing newSetEntity("mySet", "myPrefix") I'd like to be able to eliminate the prefix, and have the prefix picked up from the set itself. For example, newComponentSet("mySet", "myPrefix").

Also it might be nice to be able to peel off an entity or singleton from the ComponentSet returned by newComponentSet. For example: mySet.newEntity().