diff options
| author | HampusM <hampus@hampusmat.com> | 2025-04-10 17:41:50 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2025-04-10 17:41:50 +0200 | 
| commit | c53635829d023f99aa979e22eafa2124d35869f8 (patch) | |
| tree | 0296f1cba04806d02a21df318051bb30a36e5191 /engine/src | |
| parent | 7d25c21cdf4b46cdab680f11110fb23676c6141b (diff) | |
refactor(engine): correct register_observer_system fn
Diffstat (limited to 'engine/src')
| -rw-r--r-- | engine/src/lib.rs | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs index a9a5a97..e05808f 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -1,8 +1,9 @@  #![deny(clippy::all, clippy::pedantic)]  #![allow(clippy::needless_pass_by_value)] -use ecs::component::{Component, Sequence as ComponentSequence}; +use ecs::component::Sequence as ComponentSequence;  use ecs::extension::Extension; +use ecs::pair::Pair;  use ecs::phase::PRE_UPDATE as PRE_UPDATE_PHASE;  use ecs::sole::Sole;  use ecs::system::{Into, System}; @@ -79,12 +80,11 @@ impl Engine          self.world.register_system(phase_euid, system);      } -    pub fn register_observer_system<'this, SystemImpl, Event>( +    pub fn register_observer_system<'this, SystemImpl>(          &'this mut self,          system: impl System<'this, SystemImpl>, -        event: Event, -    ) where -        Event: Component, +        event: Pair<Uid, Uid>, +    )      {          self.world.register_observer_system(system, event);      }  | 
