[−][src]Type Definition weasel::battle::EventCallback
type EventCallback<R> = Box<dyn FnMut(&EventWrapper<R>, &BattleState<R>, &mut Option<EventQueue<R>>) + Send>;
Type to define a callback invoked each time an event is processed.
BattleState
is a snapshot of the state of the battle,
taken just after the event has been applied.
EventQueue
is an event processor that can be used to fire events.