Add util::ecs::species_count
This commit is contained in:
parent
f55fd29b58
commit
1bdef9134d
1 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,8 @@ namespace psemek::util
|
||||||
template <typename ... Components>
|
template <typename ... Components>
|
||||||
handle register_species(std::string name, Components && ... components);
|
handle register_species(std::string name, Components && ... components);
|
||||||
|
|
||||||
|
handle species_count() const { return species_.size(); }
|
||||||
|
|
||||||
handle add_entity(handle species);
|
handle add_entity(handle species);
|
||||||
handle entity_count(handle species) const;
|
handle entity_count(handle species) const;
|
||||||
void remove_entity(handle species, handle entity);
|
void remove_entity(handle species, handle entity);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue