prime31 / zig-flecs

52 stars 9 forks source link

add setModified method to Entity #18

Closed foxnne closed 2 years ago

foxnne commented 2 years ago

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.