diff options
author | HampusM <hampus@hampusmat.com> | 2025-06-07 22:52:36 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-06-07 22:54:34 +0200 |
commit | 43cbd47900d23801c584def1b7877fdea700c23a (patch) | |
tree | 72393506bbe46a66cff5fe8e1acaf68107216c25 /ecs/src/entity.rs | |
parent | aeed1b1ff3e34fe719a2f7e6097584b99a673ded (diff) |
This replaces the old component removed events
Diffstat (limited to 'ecs/src/entity.rs')
-rw-r--r-- | ecs/src/entity.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ecs/src/entity.rs b/ecs/src/entity.rs index 4496a2b..bab3d61 100644 --- a/ecs/src/entity.rs +++ b/ecs/src/entity.rs @@ -96,6 +96,11 @@ impl<'a> Handle<'a> } } + pub fn component_ids(&self) -> impl Iterator<Item = Uid> + '_ + { + self.archetype.component_ids_sorted() + } + pub(crate) fn new(archetype: &'a Archetype, entity: &'a ArchetypeEntity) -> Self { Self { archetype, entity } |