Doraku / DefaultEcs

Entity Component System framework aiming for syntax and usage simplicity with maximum performance for game development.
MIT No Attribution
658 stars 62 forks source link

Can we react on added and removed components or entities ? #130

Closed genaray closed 2 years ago

genaray commented 3 years ago

Is there some way to register a listener which is run once a sepcific component or entity in total was added or removed ?

Doraku commented 3 years ago

You can subscribe callback to whatever event occurs on entities, see the World.SubscribeComponent... methods like: