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/input.rs | |
parent | 94e5e592baea2935af7c94ad44805a09d0e30740 (diff) |
refactor(engine): use pairs instead of Relationship component
Diffstat (limited to 'engine/src/input.rs')
-rw-r--r-- | engine/src/input.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engine/src/input.rs b/engine/src/input.rs index 95de048..d6a82f6 100644 --- a/engine/src/input.rs +++ b/engine/src/input.rs @@ -1,8 +1,8 @@ use std::collections::HashMap; use ecs::extension::Collector as ExtensionCollector; +use ecs::pair::{ChildOf, Pair}; use ecs::phase::{Phase, PRE_UPDATE as PRE_UPDATE_PHASE, START as START_PHASE}; -use ecs::relationship::{ChildOf, Relationship}; use ecs::sole::Single; use ecs::{static_entity, Sole}; @@ -18,10 +18,7 @@ pub use reexports::*; static_entity!( SET_PREV_KEY_STATE_PHASE, - ( - Phase, - <Relationship<ChildOf, Phase>>::new(*WINDOW_UPDATE_PHASE) - ) + (Phase, Pair::new::<ChildOf>(*WINDOW_UPDATE_PHASE)) ); #[derive(Debug, Sole)] |