Trait bones_lib::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