diff options
| author | HampusM <hampus@hampusmat.com> | 2025-04-09 20:50:14 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2025-04-10 17:04:40 +0200 |
| commit | 94e5e592baea2935af7c94ad44805a09d0e30740 (patch) | |
| tree | 358f7496ac40e2a7d7cae10cf04bf25246debdec /ecs/src/phase.rs | |
| parent | b982b205373f445db9ced7f3cf13c1156ad8a40a (diff) | |
feat(ecs): replace Relationship component with pair UID support
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 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))); |
