A way to observe changes to entities within the world. The entities ECSOnAdd, ECSOnSet, and ECSOnRemove already exist for this feature request's purpose.
Implementation
Marcus said it would be used like this:
Observer(Transform):event(OnAdd):on(function(entity, transform) end)
Considerations
Some questions that need to be answered include the following:
Will old code break in response to this feature?
Nope.
What are the performance impacts with this feature (if any)?
I doubt much performance impacts are expected to occur.
Describe your Feature
A way to observe changes to entities within the world. The entities ECSOnAdd, ECSOnSet, and ECSOnRemove already exist for this feature request's purpose.
Implementation
Marcus said it would be used like this:
Observer(Transform):event(OnAdd):on(function(entity, transform) end)
Considerations
Some questions that need to be answered include the following: