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§

source

fn init_roll_state<S: States + FromWorld + FreelyMutableState>( &mut self, schedule: impl ScheduleLabel, ) -> &mut Self

Init state transitions in the given schedule

source

fn init_ggrs_state<S: States + FromWorld + Clone + FreelyMutableState>( &mut self, ) -> &mut Self

Register this state to be rolled back by bevy_ggrs

source

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.

Implementations on Foreign Types§

source§

impl RollApp for App

Implementors§