feat(ecs): add Entity::id for retrieving the entity identifier
This commit is contained in:
parent
3a06d51ee4
commit
7132bd3324
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ public:
|
||||||
return m_registry;
|
return m_registry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] auto id() const -> EntityId
|
||||||
|
{
|
||||||
|
return m_identifier;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
memory::Ref<Registry> m_registry;
|
memory::Ref<Registry> m_registry;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue