diff options
author | HampusM <hampus@hampusmat.com> | 2025-02-09 18:41:26 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-02-09 18:41:26 +0100 |
commit | 2a8718f7c671ab1fc5e38340b467e2bd77f16cc0 (patch) | |
tree | 15d2eba5c57b484c89d3f5e11fe41deebbd1f92e /ecs/src/actions.rs | |
parent | c06d59ffa09e22a98647f5104944e1c13b161963 (diff) |
perf(ecs): replace component::Sequence::into_vec fn with into_array
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index 3988a77..89fd84a 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -24,7 +24,7 @@ impl<'world> Actions<'world> pub fn spawn<Comps: ComponentSequence>(&mut self, components: Comps) { self.action_queue.push(Action::Spawn( - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } @@ -50,7 +50,7 @@ impl<'world> Actions<'world> self.action_queue.push(Action::AddComponents( entity_uid, - components.into_vec(), + components.into_array().into(), EventIds { ids: Comps::added_event_ids() }, )); } |