diff options
author | HampusM <hampus@hampusmat.com> | 2025-04-09 20:52:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-04-09 20:52:02 +0200 |
commit | 3ba82dd26869dad69f686d38bb70caefeaa25bfc (patch) | |
tree | c9efd4d7e149841ac45f7029f3156f28a140d49c /engine/src/window.rs | |
parent | 94e5e592baea2935af7c94ad44805a09d0e30740 (diff) |
refactor(engine): use pairs instead of Relationship component
Diffstat (limited to 'engine/src/window.rs')
-rw-r--r-- | engine/src/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs index 00c360e..614ed92 100644 --- a/engine/src/window.rs +++ b/engine/src/window.rs @@ -4,8 +4,8 @@ use std::ffi::{CStr, CString}; use bitflags::bitflags; use ecs::actions::Actions; use ecs::extension::Collector as ExtensionCollector; +use ecs::pair::{ChildOf, Pair}; use ecs::phase::{Phase, PRESENT as PRESENT_PHASE, START as START_PHASE}; -use ecs::relationship::{ChildOf, Relationship}; use ecs::sole::Single; use ecs::{static_entity, Sole}; use glfw::window::{Hint as WindowCreationHint, HintValue as WindowCreationHintValue}; @@ -17,7 +17,7 @@ use crate::vector::Vec2; static_entity!( pub UPDATE_PHASE, - (Phase, <Relationship<ChildOf, Phase>>::new(*PRESENT_PHASE)) + (Phase, Pair::new::<ChildOf>(*PRESENT_PHASE)) ); #[derive(Debug, Sole)] |