bevy/crates/bevy_ecs/src/system
BimDav 4ef18e2608
Resource change tracking (#388)
* Add mutated tracker on resources and ChangedRes query for added or mutated resources.

* ResMut:::new() now takes a reference to a 'mutated' flag in its archetype.

* Change FetchResource so that get() returns an Option. Systems using Resources will only be called if all fetched Resources are Some(). This is done to implement ChangedRes, which is Some iff the Resource has been changed.

* Add OrRes for a logical or in tuples of Resource queries.

* Separate resource query get() in is_some() and get() methods for clarity

* Remove unneeded unsafe

* Change ResMut::new()
2020-09-10 13:15:02 -07:00
..
commands.rs Replace std synchronization primitives with parking_lot (#210) 2020-08-21 14:55:16 -07:00
into_system.rs Resource change tracking (#388) 2020-09-10 13:15:02 -07:00
mod.rs enforce clippy for all target and features 2020-08-16 07:20:06 -07:00
profiler.rs profiling: fix build 2020-08-16 02:06:59 -07:00
query.rs Parallel queries (#292) 2020-09-08 12:18:32 -07:00
system.rs Switch usage of std HashMap/HashSet default hasher, to aHash algo (#258) 2020-08-28 17:08:51 -07:00