From 85ed89df486858984f0936086205efc23fd32d24 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 2 Jan 2025 17:02:25 +0100 Subject: refactor(ecs): make component::Sequence return metadata as array --- ecs/src/actions.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecs/src/actions.rs') diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index c062472..3988a77 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -44,7 +44,7 @@ impl<'world> Actions<'world> { debug_assert_eq!(entity_uid.kind(), UidKind::Entity); - if Comps::metadata().len() == 0 { + if Comps::COUNT == 0 { return; } @@ -62,13 +62,13 @@ impl<'world> Actions<'world> { debug_assert_eq!(entity_uid.kind(), UidKind::Entity); - if Comps::metadata().len() == 0 { + if Comps::COUNT == 0 { return; } self.action_queue.push(Action::RemoveComponents( entity_uid, - Comps::metadata(), + Comps::metadata().into_iter().collect(), EventIds { ids: Comps::removed_event_ids() }, )); } -- cgit v1.2.3-18-g5258