summaryrefslogtreecommitdiff
path: root/ecs/src/phase.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-04-09 20:50:14 +0200
committerHampusM <hampus@hampusmat.com>2025-04-10 17:04:40 +0200
commit94e5e592baea2935af7c94ad44805a09d0e30740 (patch)
tree358f7496ac40e2a7d7cae10cf04bf25246debdec /ecs/src/phase.rs
parentb982b205373f445db9ced7f3cf13c1156ad8a40a (diff)
feat(ecs): replace Relationship component with pair UID support
Diffstat (limited to 'ecs/src/phase.rs')
-rw-r--r--ecs/src/phase.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecs/src/phase.rs b/ecs/src/phase.rs
index b8660f2..48dd38d 100644
--- a/ecs/src/phase.rs
+++ b/ecs/src/phase.rs
@@ -1,6 +1,6 @@
use ecs_macros::Component;
-use crate::relationship::{ChildOf, Relationship};
+use crate::pair::{ChildOf, Pair};
use crate::static_entity;
#[derive(Debug, Default, Clone, Copy, Component)]
@@ -10,6 +10,6 @@ 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 UPDATE, (Phase, Pair::new::<ChildOf>(*PRE_UPDATE)));
-static_entity!(pub PRESENT, (Phase, <Relationship<ChildOf, Phase>>::new(*UPDATE)));
+static_entity!(pub PRESENT, (Phase, Pair::new::<ChildOf>(*UPDATE)));