summaryrefslogtreecommitdiff
path: root/ecs/src/actions.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-01-02 17:02:25 +0100
committerHampusM <hampus@hampusmat.com>2025-01-02 17:02:25 +0100
commit85ed89df486858984f0936086205efc23fd32d24 (patch)
treef0480c745b3980e0767ed79177d87188f8129514 /ecs/src/actions.rs
parent1f6685aa570eadc70342bd1c62f5f9ff451afcb2 (diff)
refactor(ecs): make component::Sequence return metadata as array
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r--ecs/src/actions.rs6
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() },
));
}