Trait de_core::transition::DeStateTransition
source · pub trait DeStateTransition {
// Required methods
fn add_state_with_set<S: States + FromWorld + StateWithSet>(
&mut self
) -> &mut Self;
fn add_child_state<P: StateWithSet, S: States + FromWorld + StateWithSet>(
&mut self
) -> &mut Self;
}
Required Methods§
sourcefn add_state_with_set<S: States + FromWorld + StateWithSet>(
&mut self
) -> &mut Self
fn add_state_with_set<S: States + FromWorld + StateWithSet>( &mut self ) -> &mut Self
This method is almost equal to Bevy’s [App::init_state
]. The only
difference is that the state transition is added to an associated
state. See StateWithSet
.
fn add_child_state<P: StateWithSet, S: States + FromWorld + StateWithSet>( &mut self ) -> &mut Self
Object Safety§
This trait is not object safe.