From 7132bd3324a74854f79ba6d8bf7ec1ff86bad5f0 Mon Sep 17 00:00:00 2001 From: light7734 Date: Wed, 8 Oct 2025 06:27:25 +0330 Subject: [PATCH] feat(ecs): add Entity::id for retrieving the entity identifier --- modules/ecs/public/entity.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ecs/public/entity.hpp b/modules/ecs/public/entity.hpp index 29fb61d..9fdfda5 100644 --- a/modules/ecs/public/entity.hpp +++ b/modules/ecs/public/entity.hpp @@ -39,6 +39,11 @@ public: return m_registry; } + [[nodiscard]] auto id() const -> EntityId + { + return m_identifier; + } + private: memory::Ref m_registry;