Skip to content

Commit

Permalink
BulkEntityBuilder:: add count getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Sep 19, 2024
1 parent e460172 commit 03e9c22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flecs_ecs/src/core/entity_view/bulk_entity_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ impl<'a> BulkEntityBuilder<'a> {
self.desc.table = std::ptr::null_mut();
entities
}

/// Returns the number of entities to be created.
pub fn count(&self) -> u32 {
self.desc.count as u32
}
}

impl World {
Expand Down

0 comments on commit 03e9c22

Please sign in to comment.