Struct rpg::behaviour::Custom
[−]
[src]
pub struct Custom { /* fields omitted */ }
A simple custom behaviour for quick-fixes and testing
Methods
impl Custom
[src]
fn new<F: 'static>(handler: F) -> Custom where
F: Fn(Event) -> Event,
F: Fn(Event) -> Event,
Creates a new instance of Custom
Trait Implementations
impl Behaviour for Custom
[src]
fn handle_event(&self, event: Event) -> Event
Handle an event