diff options
author | HampusM <hampus@hampusmat.com> | 2025-01-02 17:02:25 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-01-02 17:02:25 +0100 |
commit | 85ed89df486858984f0936086205efc23fd32d24 (patch) | |
tree | f0480c745b3980e0767ed79177d87188f8129514 /ecs/src/actions.rs | |
parent | 1f6685aa570eadc70342bd1c62f5f9ff451afcb2 (diff) |
refactor(ecs): make component::Sequence return metadata as array
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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() }, )); } |