Trait GamePlugin

Source
pub trait GamePlugin {
    // Required method
    fn install(self, game: &mut Game);
}
Expand description

Trait for plugins that can be installed into a Game.

Required Methods§

Source

fn install(self, game: &mut Game)

Install the plugin into the Game.

Implementors§

Source§

impl<F: FnOnce(&mut Game)> GamePlugin for F