diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-02 03:33:04 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-02 03:33:04 +0100 |
| commit | 790c746a35d59be5070c40d6ca1f71cc9a2d094b (patch) | |
| tree | fa4e75d00099e1cc76bd4a8e67254b4b85b8dfb9 /engine-ecs/src/lib.rs | |
| parent | 5f4118d38783c01d35ca0907d07edb7af30e2fbc (diff) | |
feat(engine-ecs): add marker component for soles
Diffstat (limited to 'engine-ecs/src/lib.rs')
| -rw-r--r-- | engine-ecs/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs index da221cb..f9e8143 100644 --- a/engine-ecs/src/lib.rs +++ b/engine-ecs/src/lib.rs @@ -253,6 +253,7 @@ impl World [ sole.into_parts(), EntityName { name: name.into() }.into_parts(), + crate::sole::Is.into_parts(), ], &ComponentAddingFlags { allow_soles: true }, ); @@ -682,7 +683,11 @@ impl World Self::add_entity_components( sole_parts.id, - [sole_parts, EntityName { name: name.into() }.into_parts()], + [ + sole_parts, + EntityName { name: name.into() }.into_parts(), + crate::sole::Is.into_parts(), + ], &mut self.data.component_storage, &EventSubmitter::new(&self.data.new_events), &ComponentAddingFlags { allow_soles: true }, |
