(World) Added GetEntities() method
Former-commit-id: 14095df977d566b3a3c306542bd4d83bd11392d1
This commit is contained in:
parent
7351ce46fb
commit
ebc651dec8
|
|
@ -38,6 +38,7 @@ namespace Ndk
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
const EntityHandle& GetEntity(EntityId id);
|
const EntityHandle& GetEntity(EntityId id);
|
||||||
|
const EntityList& GetEntities();
|
||||||
BaseSystem& GetSystem(SystemIndex index);
|
BaseSystem& GetSystem(SystemIndex index);
|
||||||
template<typename SystemType> SystemType& GetSystem();
|
template<typename SystemType> SystemType& GetSystem();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,11 @@ namespace Ndk
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline const World::EntityList& World::GetEntities()
|
||||||
|
{
|
||||||
|
return m_aliveEntities;
|
||||||
|
}
|
||||||
|
|
||||||
inline BaseSystem& World::GetSystem(SystemIndex index)
|
inline BaseSystem& World::GetSystem(SystemIndex index)
|
||||||
{
|
{
|
||||||
///DOC: Le système doit être présent
|
///DOC: Le système doit être présent
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue