summaryrefslogtreecommitdiffstats
path: root/src/World.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/World.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.hpp b/src/World.hpp
index 6b8b5d1..31290c8 100644
--- a/src/World.hpp
+++ b/src/World.hpp
@@ -22,7 +22,7 @@ class World {
Section ParseSection(StreamInput *data, Vector position);
- std::vector<Entity> entities;
+ std::list<Entity> entities;
std::mutex entitiesMutex;
@@ -57,6 +57,8 @@ public:
Entity& GetEntity(unsigned int EntityId);
+ Entity* GetEntityPtr(unsigned int EntityId);
+
std::vector<unsigned int> GetEntitiesList();
void AddEntity(Entity entity);