Skip to main content

yog_event/
phase.rs

1//! When a handler runs: before or after the game does it.
2
3/// Whether a handler is running before or after the action.
4///
5/// In `Pre` phase the handler's return value may cancel the action.
6/// In `Post` phase the return value is ignored.
7#[derive(Debug, Clone, Copy, PartialEq, Eq)]
8pub enum EventPhase {
9    Pre,
10    Post,
11}