From c149d9ac2492cecbd1ba336f231157f69413942b Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 30 Sep 2017 21:00:09 +0500 Subject: 2017-09-30 --- src/World.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/World.hpp') 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 entities; + std::list entities; std::mutex entitiesMutex; @@ -57,6 +57,8 @@ public: Entity& GetEntity(unsigned int EntityId); + Entity* GetEntityPtr(unsigned int EntityId); + std::vector GetEntitiesList(); void AddEntity(Entity entity); -- cgit v1.2.3