[][src]Struct amethyst::GameData

pub struct GameData<'a, 'b> { /* fields omitted */ }

Default game data.

The lifetimes are for the systems inside and can be 'static unless a system has a borrowed field.

Methods

impl<'a, 'b> GameData<'a, 'b>[src]

pub fn new(dispatcher: Dispatcher<'a, 'b>) -> Self[src]

Create new game data

pub fn update(&mut self, world: &World)[src]

Update game data

Trait Implementations

impl<'a, 'b> DataInit<GameData<'a, 'b>> for GameDataBuilder<'a, 'b>[src]

impl<T: SimpleState> State<GameData<'static, 'static>, StateEvent<String>> for T[src]

fn on_start(&mut self, data: StateData<GameData>)[src]

Executed when the game state begins.

fn on_stop(&mut self, data: StateData<GameData>)[src]

Executed when the game state exits.

fn on_pause(&mut self, data: StateData<GameData>)[src]

Executed when a different game state is pushed onto the stack.

fn on_resume(&mut self, data: StateData<GameData>)[src]

Executed when the application returns to this game state once again.

fn handle_event(
    &mut self,
    data: StateData<GameData>,
    event: StateEvent
) -> SimpleTrans
[src]

Executed on every frame before updating, for use in reacting to events.

fn fixed_update(&mut self, data: StateData<GameData>) -> SimpleTrans[src]

Executed repeatedly at stable, predictable intervals (1/60th of a second by default).

fn update(&mut self, data: StateData<GameData>) -> SimpleTrans[src]

Executed on every frame immediately, as fast as the engine will allow (taking into account the frame rate limit).

fn shadow_fixed_update(&mut self, data: StateData<GameData>)[src]

Executed repeatedly at stable, predictable intervals (1/60th of a second by default), even when this is not the active state, as long as this state is on the StateMachine's state-stack.

fn shadow_update(&mut self, data: StateData<GameData>)[src]

Executed on every frame immediately, as fast as the engine will allow (taking into account the frame rate limit), even when this is not the active state, as long as this state is on the StateMachine's state-stack.

Auto Trait Implementations

impl<'a, 'b> !Send for GameData<'a, 'b>

impl<'a, 'b> !Sync for GameData<'a, 'b>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.