MonoGame.Extended
MonoGame.Extended copied to clipboard
[ECS] Add the ability to subscribe to put/delete in component mapper
This is just a thought: Similar to what is already in place where you can subscribe a system to entity changes, if mappers were to have change subscriptions this would allow for processing entities that got new components one time.
event OnPut event OnDelete
For Example:
I am working a "fatigue" system that when an entity moves before their turn it generates fatigue on the character. I only want to process this when the entity gets a movement component attached once.
There are current ways to handle this yes, just thought this would be a simpler solution.