diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-28 13:53:28 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-28 13:53:28 +0200 |
commit | 0008b374c7f3a9ef6b30ea31a4a8c98bce64649f (patch) | |
tree | 9d9fffc6cae105e32d57f2aa4936881bea7e3cc2 /ecs/src/phase.rs | |
parent | 43430f8ce957290caf70b6ca0da0b8fd326f32c0 (diff) |
Diffstat (limited to 'ecs/src/phase.rs')
-rw-r--r-- | ecs/src/phase.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/src/phase.rs b/ecs/src/phase.rs index 9e3be24..39f2a08 100644 --- a/ecs/src/phase.rs +++ b/ecs/src/phase.rs @@ -1,6 +1,5 @@ use ecs_macros::Component; -use crate::pair::{ChildOf, Pair}; use crate::{declare_entity, World}; #[derive(Debug, Default, Clone, Copy, Component)] @@ -8,12 +7,13 @@ pub struct Phase; declare_entity!(pub START, (Phase,)); declare_entity!(pub PRE_UPDATE, (Phase,)); -declare_entity!(pub UPDATE, (Phase, Pair::builder().relation::<ChildOf>().target_id(*PRE_UPDATE).build())); +declare_entity!(pub UPDATE, (Phase,)); +declare_entity!(pub POST_UPDATE, (Phase,)); -#[doc(hidden)] pub(crate) fn spawn_entities(world: &mut World) { world.create_declared_entity(&START); world.create_declared_entity(&PRE_UPDATE); world.create_declared_entity(&UPDATE); + world.create_declared_entity(&POST_UPDATE); } |