summaryrefslogtreecommitdiff
path: root/ecs/src/phase.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-24 22:16:50 +0200
committerHampusM <hampus@hampusmat.com>2025-09-25 22:42:35 +0200
commitcbed21f5e6cfb449d49087cedc867c8e50721ba9 (patch)
tree3850ac5e7907a40e4c4e5627f547bd44c37896ce /ecs/src/phase.rs
parent8d76fe6be211dfc8fc57d4e2f7e312e757ca899c (diff)
refactor(ecs): replace Pair ctor functions with builder
Diffstat (limited to 'ecs/src/phase.rs')
-rw-r--r--ecs/src/phase.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/src/phase.rs b/ecs/src/phase.rs
index c13c432..9e3be24 100644
--- a/ecs/src/phase.rs
+++ b/ecs/src/phase.rs
@@ -8,7 +8,7 @@ pub struct Phase;
declare_entity!(pub START, (Phase,));
declare_entity!(pub PRE_UPDATE, (Phase,));
-declare_entity!(pub UPDATE, (Phase, Pair::new::<ChildOf>(*PRE_UPDATE)));
+declare_entity!(pub UPDATE, (Phase, Pair::builder().relation::<ChildOf>().target_id(*PRE_UPDATE).build()));
#[doc(hidden)]
pub(crate) fn spawn_entities(world: &mut World)