Trait GameCommands

Source
pub trait GameCommands {
    // Required methods
    fn add_actor(&mut self, actor_type: ActorType, pos: Point);
    fn add_sound(&mut self, index: SoundIndex);

    // Provided method
    fn add_particle_firework(&mut self, pos: Point, count: usize) { ... }
}

Required Methods§

Source

fn add_actor(&mut self, actor_type: ActorType, pos: Point)

Source

fn add_sound(&mut self, index: SoundIndex)

Provided Methods§

Source

fn add_particle_firework(&mut self, pos: Point, count: usize)

Implementors§