[][src]Trait keeshond::scene::SceneType

pub trait SceneType {
    type SpawnableIdType: FromStr + 'static;
    fn new() -> Self
    where
        Self: Sized
; fn spawn(
        &mut self,
        spawn: &mut SpawnControl,
        spawnable_id: Self::SpawnableIdType,
        game: &mut GameControl,
        x: f64,
        y: f64,
        args: &[SpawnArg]
    ) { ... }
fn thinkers(
        &mut self,
        game: &mut GameControl
    ) -> Vec<Box<dyn ThinkerSystem<Self>>> { ... }
fn drawers(&mut self, game: &mut GameControl) -> Vec<Box<dyn DrawerSystem>> { ... } }

A trait containing information on how to instantiate spawnables in the scene, and which systems this scene should include.

Associated Types

type SpawnableIdType: FromStr + 'static

Loading content...

Required methods

fn new() -> Self where
    Self: Sized

Loading content...

Provided methods

fn spawn(
    &mut self,
    spawn: &mut SpawnControl,
    spawnable_id: Self::SpawnableIdType,
    game: &mut GameControl,
    x: f64,
    y: f64,
    args: &[SpawnArg]
)

fn thinkers(
    &mut self,
    game: &mut GameControl
) -> Vec<Box<dyn ThinkerSystem<Self>>>

fn drawers(&mut self, game: &mut GameControl) -> Vec<Box<dyn DrawerSystem>>

Loading content...

Implementors

impl SceneType for NullSceneType[src]

type SpawnableIdType = u32

Loading content...