diff options
| author | HampusM <hampus@hampusmat.com> | 2026-12-03 17:14:59 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-12-03 17:14:59 +0100 |
| commit | 9340c6fbe46767d3f57ab644190892c7fbaa653d (patch) | |
| tree | 6ecf3cf57c54763329a35767eb896657473300d2 /engine-ecs/src | |
| parent | 082ac81dcdff07c5c9dd534867148f8a1bd9015f (diff) | |
refactor(engine-ecs): do not add entity::Name component to sole entities
Diffstat (limited to 'engine-ecs/src')
| -rw-r--r-- | engine-ecs/src/lib.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs index f7960a9..0626b33 100644 --- a/engine-ecs/src/lib.rs +++ b/engine-ecs/src/lib.rs @@ -247,11 +247,7 @@ impl World self.create_ent( SoleT::id(), - [ - sole.into(), - EntityName { name: SoleT::name() }.into(), - crate::sole::Is.into(), - ], + [sole.into(), crate::sole::Is.into()], &ComponentAddingFlags { allow_soles: true }, ); @@ -627,15 +623,9 @@ impl World continue; } - let name = sole_parts.component_info.name.clone(); - Self::add_entity_components( sole_parts.id, - [ - sole_parts, - EntityName { name: name.into() }.into(), - crate::sole::Is.into(), - ], + [sole_parts, crate::sole::Is.into()], &mut self.data.component_storage, &EventSubmitter::new(&self.data.new_events), &ComponentAddingFlags { allow_soles: true }, |
