Just adds a setModified method to Entity. I didn't realize that set is the only way to trigger an observer's event, and that if you write to a component from a system, the observer won't see those changes, even if it's set to Out. After talking to Sander, the only other way to trigger an observer outside of set is to call ecs_modified after changing the component data via system.
Just adds a
setModified
method to Entity. I didn't realize thatset
is the only way to trigger an observer's event, and that if you write to a component from a system, the observer won't see those changes, even if it's set toOut
. After talking to Sander, the only other way to trigger an observer outside ofset
is to callecs_modified
after changing the component data via system.