Skip to content

Commit

Permalink
Reorder fields in SystemSchedule (#10764)
Browse files Browse the repository at this point in the history
Make more clear what is going on there.
  • Loading branch information
stepancheg authored Dec 12, 2023
1 parent 67d92e9 commit 79641c7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions crates/bevy_ecs/src/schedule/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,23 @@ pub enum ExecutorKind {
/// [`FixedBitSet`] is used as a smaller, more efficient substitute of `HashSet<usize>`.
#[derive(Default)]
pub struct SystemSchedule {
/// List of system node ids.
pub(super) system_ids: Vec<NodeId>,
/// Indexed by system node id.
pub(super) systems: Vec<BoxedSystem>,
/// Indexed by system node id.
pub(super) system_conditions: Vec<Vec<BoxedCondition>>,
pub(super) set_conditions: Vec<Vec<BoxedCondition>>,
pub(super) system_ids: Vec<NodeId>,
pub(super) set_ids: Vec<NodeId>,
/// Indexed by system node id.
pub(super) system_dependencies: Vec<usize>,
/// Indexed by system node id.
pub(super) system_dependents: Vec<Vec<usize>>,
/// Indexed by system node id.
pub(super) sets_with_conditions_of_systems: Vec<FixedBitSet>,
/// List of system set node ids.
pub(super) set_ids: Vec<NodeId>,
/// Indexed by system set node id.
pub(super) set_conditions: Vec<Vec<BoxedCondition>>,
/// Indexed by system set node id.
pub(super) systems_in_sets_with_conditions: Vec<FixedBitSet>,
}

Expand Down

0 comments on commit 79641c7

Please sign in to comment.