feat(ecs): add Entity::id for retrieving the entity identifier

This commit is contained in:
light7734 2025-10-08 06:27:25 +03:30
parent 3a06d51ee4
commit 7132bd3324
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -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;