From 6e7abf273d758bf15c1ba3e331e370b2bea3f8e2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 13 Sep 2025 19:24:29 +0200 Subject: feat(ecs): re-implement component added & removed events --- ecs/src/event.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ecs/src/event.rs') 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) -> Self { - Self { new_events: &world.data.new_events } + Self { new_events } } } -- cgit v1.2.3-18-g5258