diff --git a/SDK/include/NDK/World.hpp b/SDK/include/NDK/World.hpp index 946c967d4..c59cc9694 100644 --- a/SDK/include/NDK/World.hpp +++ b/SDK/include/NDK/World.hpp @@ -38,6 +38,7 @@ namespace Ndk void Clear(); const EntityHandle& GetEntity(EntityId id); + const EntityList& GetEntities(); BaseSystem& GetSystem(SystemIndex index); template SystemType& GetSystem(); diff --git a/SDK/include/NDK/World.inl b/SDK/include/NDK/World.inl index cf1746bd7..6bb51c2ae 100644 --- a/SDK/include/NDK/World.inl +++ b/SDK/include/NDK/World.inl @@ -47,6 +47,11 @@ namespace Ndk return list; } + inline const World::EntityList& World::GetEntities() + { + return m_aliveEntities; + } + inline BaseSystem& World::GetSystem(SystemIndex index) { ///DOC: Le système doit être présent