mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
b1afe2dcca
# Objective - Make it possible to use `System`s outside of the scheduler/executor without having to define logic to track new archetypes and call `System::add_archetype()` for each. ## Solution - Replace `System::add_archetype(&Archetype)` with `System::update_archetypes(&World)`, making systems responsible for tracking their own most recent archetype generation the way that `SystemState` already does. This has minimal (or simplifying) effect on most of the code with the exception of `FunctionSystem`, which must now track the latest `ArchetypeGeneration` it saw instead of relying on the executor to do it. Co-authored-by: Carter Anderson <mcanders1@gmail.com> |
||
---|---|---|
.. | ||
commands | ||
exclusive_system.rs | ||
function_system.rs | ||
mod.rs | ||
query.rs | ||
system.rs | ||
system_chaining.rs | ||
system_param.rs |