Skip to content

Commit 79641c7

Browse files
authored
Reorder fields in SystemSchedule (#10764)
Make more clear what is going on there.
1 parent 67d92e9 commit 79641c7

File tree

1 file changed

+12
-3
lines changed
  • crates/bevy_ecs/src/schedule/executor

1 file changed

+12
-3
lines changed

crates/bevy_ecs/src/schedule/executor/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,23 @@ pub enum ExecutorKind {
5050
/// [`FixedBitSet`] is used as a smaller, more efficient substitute of `HashSet<usize>`.
5151
#[derive(Default)]
5252
pub struct SystemSchedule {
53+
/// List of system node ids.
54+
pub(super) system_ids: Vec<NodeId>,
55+
/// Indexed by system node id.
5356
pub(super) systems: Vec<BoxedSystem>,
57+
/// Indexed by system node id.
5458
pub(super) system_conditions: Vec<Vec<BoxedCondition>>,
55-
pub(super) set_conditions: Vec<Vec<BoxedCondition>>,
56-
pub(super) system_ids: Vec<NodeId>,
57-
pub(super) set_ids: Vec<NodeId>,
59+
/// Indexed by system node id.
5860
pub(super) system_dependencies: Vec<usize>,
61+
/// Indexed by system node id.
5962
pub(super) system_dependents: Vec<Vec<usize>>,
63+
/// Indexed by system node id.
6064
pub(super) sets_with_conditions_of_systems: Vec<FixedBitSet>,
65+
/// List of system set node ids.
66+
pub(super) set_ids: Vec<NodeId>,
67+
/// Indexed by system set node id.
68+
pub(super) set_conditions: Vec<Vec<BoxedCondition>>,
69+
/// Indexed by system set node id.
6170
pub(super) systems_in_sets_with_conditions: Vec<FixedBitSet>,
6271
}
6372

0 commit comments

Comments
 (0)