diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
commit | d93c2073896e63aca5a859fe7182ba24dbe84cd3 (patch) | |
tree | 6144aaf7e01854fe245011ca4f4735974366febb /src/world/World.hpp | |
parent | 2017-05-26 (diff) | |
download | AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.gz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.bz2 AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.lz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.xz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.zst AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.zip |
Diffstat (limited to 'src/world/World.hpp')
-rw-r--r-- | src/world/World.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/world/World.hpp b/src/world/World.hpp index 7b7ea60..cef9eea 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -11,22 +11,22 @@ class World { //utility vars - World(const World& other); - World&operator=(const World &other); - bool isContinue=true; - std::mutex m_parseSectionMutex; - std::condition_variable m_parseSectionWaiter; - std::thread m_sectionParseThread; - std::queue<std::map<Vector,Section>::iterator> m_sectionToParse; - //utility methods - void SectionParsingThread(); + World(const World &other); + + World &operator=(const World &other); + //game vars int m_dimension = 0; + //game methods Section ParseSection(byte *data, size_t &dataLen); + public: World(); + ~World(); + void ParseChunkData(Packet packet); + std::map<Vector, Section> m_sections; };
\ No newline at end of file |