Trait bevy_roll_safe::RollApp
source · pub trait RollApp {
// Required methods
fn init_roll_state<S: States + FromWorld + FreelyMutableState>(
&mut self,
schedule: impl ScheduleLabel,
) -> &mut Self;
fn init_ggrs_state<S: States + FromWorld + Clone + FreelyMutableState>(
&mut self,
) -> &mut Self;
fn init_ggrs_state_in_schedule<S: States + FromWorld + Clone + FreelyMutableState>(
&mut self,
schedule: impl ScheduleLabel,
) -> &mut Self;
}
Required Methods§
sourcefn init_roll_state<S: States + FromWorld + FreelyMutableState>(
&mut self,
schedule: impl ScheduleLabel,
) -> &mut Self
fn init_roll_state<S: States + FromWorld + FreelyMutableState>( &mut self, schedule: impl ScheduleLabel, ) -> &mut Self
Init state transitions in the given schedule
sourcefn init_ggrs_state<S: States + FromWorld + Clone + FreelyMutableState>(
&mut self,
) -> &mut Self
fn init_ggrs_state<S: States + FromWorld + Clone + FreelyMutableState>( &mut self, ) -> &mut Self
Register this state to be rolled back by bevy_ggrs
sourcefn init_ggrs_state_in_schedule<S: States + FromWorld + Clone + FreelyMutableState>(
&mut self,
schedule: impl ScheduleLabel,
) -> &mut Self
fn init_ggrs_state_in_schedule<S: States + FromWorld + Clone + FreelyMutableState>( &mut self, schedule: impl ScheduleLabel, ) -> &mut Self
Register this state to be rolled back by bevy_ggrs in the specified schedule
Object Safety§
This trait is not object safe.