diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-09-03 17:45:52 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:31 +0100 |
commit | 145ba8e157f79db64203db9684af2e6ed33af075 (patch) | |
tree | ec524120eaf2dda746d662297483be51fe626367 /src/World.hpp | |
parent | 2017-08-29 (diff) | |
download | AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.gz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.bz2 AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.lz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.xz AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.tar.zst AltCraft-145ba8e157f79db64203db9684af2e6ed33af075.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<Vector> sectionsList; + + void UpdateSectionList(); + public: World(); @@ -40,9 +44,9 @@ public: bool isPlayerCollides(double X, double Y, double Z); - std::vector<Vector> GetSectionsList(); + const std::vector<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); |