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§

source

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.

source

fn add_child_state<P: StateWithSet, S: States + FromWorld + StateWithSet>( &mut self ) -> &mut Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DeStateTransition for App

source§

fn add_state_with_set<S: States + FromWorld + StateWithSet>( &mut self ) -> &mut Self

source§

fn add_child_state<P: StateWithSet, S: States + FromWorld + StateWithSet>( &mut self ) -> &mut Self

Implementors§