1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use ecs_macros::Component;
use crate::relationship::{ChildOf, Relationship};
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, <Relationship<ChildOf, Phase>>::new(*PRE_UPDATE)));
static_entity!(pub PRESENT, (Phase, <Relationship<ChildOf, Phase>>::new(*UPDATE)));
|