Struct amethyst::prelude::StateData[][src]

pub struct StateData<'a, T> where
    T: 'a, 
{ pub world: &'a mut World, pub data: &'a mut T, }

State data encapsulates the data sent to all state functions from the application main loop.

Fields

Main World

User defined game data

Methods

impl<'a, T> StateData<'a, T> where
    T: 'a, 
[src]

Create a new state data

Auto Trait Implementations

impl<'a, T> Send for StateData<'a, T> where
    T: Send

impl<'a, T> Sync for StateData<'a, T> where
    T: Sync