diff options
Diffstat (limited to 'ecs/src/phase.rs')
-rw-r--r-- | ecs/src/phase.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ecs/src/phase.rs b/ecs/src/phase.rs new file mode 100644 index 0000000..9f47fb8 --- /dev/null +++ b/ecs/src/phase.rs @@ -0,0 +1,13 @@ +use ecs_macros::Component; + +use crate::pair::{ChildOf, Pair}; +use crate::static_entity; + +#[derive(Debug, Default, Clone, Copy, Component)] +pub struct Phase; + +static_entity!(pub START, (Phase,)); + +static_entity!(pub PRE_UPDATE, (Phase,)); + +static_entity!(pub UPDATE, (Phase, Pair::new::<ChildOf>(*PRE_UPDATE))); |