bevy
bevy copied to clipboard
Refactor command application for more consistency
Objective
- Prevent the case where a hook/observer is triggered but the source entity/component no longer exists
Solution
- Re-order command application such that all hooks/observers that are notified will run before any have a chance to invalidate the result.
Testing
Updated relevant tests in bevy_ecs
, all other tests pass.