diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-13 19:24:29 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-13 19:24:29 +0200 |
commit | 6e7abf273d758bf15c1ba3e331e370b2bea3f8e2 (patch) | |
tree | d13ad55858583e0546632aeeb0b7336677378621 /ecs/src/event.rs | |
parent | 1bf48462393099d971b7a8613bd945d863d97273 (diff) |
Diffstat (limited to 'ecs/src/event.rs')
-rw-r--r-- | ecs/src/event.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ecs/src/event.rs b/ecs/src/event.rs index 2934b82..a0b2487 100644 --- a/ecs/src/event.rs +++ b/ecs/src/event.rs @@ -2,7 +2,6 @@ use crate::lock::Lock; use crate::pair::Pair; use crate::uid::{Kind as UidKind, Uid}; use crate::util::VecExt; -use crate::World; pub mod component; @@ -36,9 +35,9 @@ impl<'world> Submitter<'world> new_events_lock.push_event_match(event, match_id); } - pub(crate) fn new(world: &'world World) -> Self + pub(crate) fn new(new_events: &'world Lock<NewEvents>) -> Self { - Self { new_events: &world.data.new_events } + Self { new_events } } } |