From 43cbd47900d23801c584def1b7877fdea700c23a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 7 Jun 2025 22:52:36 +0200 Subject: feat(ecs): make component removals queryable This replaces the old component removed events --- ecs/src/actions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/actions.rs') diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index e0efeda..3dd8755 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -23,7 +23,7 @@ impl<'world> Actions<'world> .push(Action::Spawn(components.into_parts_array().into())); } - /// Queues up despawning a entity at the end of the current tick. + /// Queues up despawning a entity at the end of the **next** tick. pub fn despawn(&mut self, entity_uid: Uid) { debug_assert_eq!(entity_uid.kind(), UidKind::Entity); @@ -48,7 +48,7 @@ impl<'world> Actions<'world> )); } - /// Queues up removing component(s) from a entity at the end of the current tick. + /// Queues up removing component(s) from a entity at the end of the **next** tick. pub fn remove_components( &mut self, entity_uid: Uid, -- cgit v1.2.3-18-g5258