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

static_entity!(pub PRESENT, (Phase, Pair::new::<ChildOf>(*UPDATE)));