Skip to content

Commit

Permalink
Add on_in_stack_update to SystemSet (bevyengine#1792)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRawMeatball committed Mar 31, 2021
1 parent d6bc414 commit b657a9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/bevy_ecs/src/schedule/system_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ impl SystemSet {
Self::new().with_run_criteria(State::<T>::on_inactive_update(s))
}

pub fn on_in_stack_update<T>(s: T) -> SystemSet
where
T: Component + Debug + Clone + Eq + Hash,
{
Self::new().with_run_criteria(State::<T>::on_in_stack_update(s))
}

pub fn on_enter<T>(s: T) -> SystemSet
where
T: Component + Debug + Clone + Eq + Hash,
Expand Down

0 comments on commit b657a9b

Please sign in to comment.