Skip to content

Commit

Permalink
Update crates/bevy_ecs/src/schedule/schedule.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
geieredgar and alice-i-cecile authored Aug 14, 2023
1 parent 6c58ed0 commit b98fd4e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions crates/bevy_ecs/src/schedule/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,14 @@ impl ScheduleGraph {
})
}

/// Adds the config items to the graph. Returns a vector of all node ids contained in the nested `ItemConfigs`
/// if `ancestor_chained` is true. Also returns true if "densely chained", meaning that all nested items
/// are linearly chained in the order they are defined
/// Adds the config items to the graph.
///
/// `ancestor_chained` describes whether the provided ancestor are densely chained.
/// `process_config` is the function by which the `ItemConfigs` are transformed into `NodeId`.
///
/// The fields on the returned [`ProcessConfigResult`] are:
/// - `nodes`: a vector of all node ids contained in the nested `ItemConfigs`
/// - `densely_chained`: a boolean that controls whether all nested items should be linearly chained (with successive `after` system orderings) in the order they are defined
fn process_configs<T>(
&mut self,
configs: ItemConfigs<T>,
Expand Down

0 comments on commit b98fd4e

Please sign in to comment.