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§
Sourcefn handle_event(&self, event: Event) -> Event
fn handle_event(&self, event: Event) -> Event
Handle an event