summaryrefslogtreecommitdiff
path: root/ecs/src/phase.rs
blob: 9f47fb812032737bd01bfb7e28992f83ce098dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)));