Trait DataInit
amethyst
pub trait DataInit<T> { fn build(self, world: &mut World) -> T; }
Initialise trait for game data
fn build(self, world: &mut World) -> T
Build game data
impl DataInit<()> for ()
fn build(self, _: &mut World)
impl<'a, 'b> DataInit<GameData<'a, 'b>> for GameDataBuilder<'a, 'b>
fn build(self, world: &mut World) -> GameData<'a, 'b>