rpg::behaviour

Trait Behaviour

Source
pub trait Behaviour {
    // Required method
    fn handle_event(&self, event: Event) -> Event;
}
Expand description

A behaviour defining how entities react to certain events

Required Methods§

Source

fn handle_event(&self, event: Event) -> Event

Handle an event

Implementors§