From 145ba8e157f79db64203db9684af2e6ed33af075 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 3 Sep 2017 20:45:52 +0500 Subject: 2017-09-03 --- src/World.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/World.hpp') diff --git a/src/World.hpp b/src/World.hpp index a5cf60c..89c40d4 100644 --- a/src/World.hpp +++ b/src/World.hpp @@ -25,6 +25,10 @@ class World { std::mutex entitiesMutex; + std::vector sectionsList; + + void UpdateSectionList(); + public: World(); @@ -40,9 +44,9 @@ public: bool isPlayerCollides(double X, double Y, double Z); - std::vector GetSectionsList(); + const std::vector& GetSectionsList(); - const Section &GetSection(Vector sectionPos); + const Section* GetSection(Vector sectionPos); glm::vec3 Raycast(glm::vec3 position, glm::vec3 direction, float maxLength = 1000.0f, float minPrecision = 0.01f); -- cgit v1.2.3