From 0008b374c7f3a9ef6b30ea31a4a8c98bce64649f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 28 Sep 2025 13:53:28 +0200 Subject: feat(ecs): add POST_UPDATE phase --- ecs/src/phase.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecs/src/phase.rs') 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::().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); } -- cgit v1.2.3-18-g5258