diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-03 16:44:56 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-03 16:44:56 +0200 |
| commit | 22f2a5321162dc42d652949eda36cff63e3ebe64 (patch) | |
| tree | 2ed3c57138228160e88d43522af225c99d4e799e /engine-ecs/src | |
| parent | dc677a37fd6f57400fbfb561aa1d5b9002405f8b (diff) | |
test(engine-ecs): make tests compile again
Diffstat (limited to 'engine-ecs/src')
| -rw-r--r-- | engine-ecs/src/component/storage/archetype.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engine-ecs/src/component/storage/archetype.rs b/engine-ecs/src/component/storage/archetype.rs index 236bf97..e72126a 100644 --- a/engine-ecs/src/component/storage/archetype.rs +++ b/engine-ecs/src/component/storage/archetype.rs @@ -112,6 +112,13 @@ impl Archetype self.component_index_lookup.len() } + // Currently only used by a test + #[allow(dead_code)] + pub fn entity_cnt(&self) -> usize + { + self.entities.len() + } + pub fn get_matching_component_indices( &self, component_id: Uid, |
