diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-18 16:03:05 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-18 16:03:05 +0200 |
commit | 4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79 (patch) | |
tree | 548911d4e341fd5717acff3b5bc752c7b5650bf4 /src/world/Section.hpp | |
parent | 2017-05-13 (diff) | |
download | AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar.gz AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar.bz2 AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar.lz AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar.xz AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.tar.zst AltCraft-4d7b1da29e0957ac798ee8e6da8288cbd4ae5c79.zip |
Diffstat (limited to '')
-rw-r--r-- | src/world/Section.hpp (renamed from code/Section.hpp) | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/code/Section.hpp b/src/world/Section.hpp index 8e1a0d1..3065cbd 100644 --- a/code/Section.hpp +++ b/src/world/Section.hpp @@ -4,7 +4,7 @@ #include <map> #include <condition_variable> #include "Block.hpp" -#include "Field.hpp" +#include "../packet/Field.hpp" const int SECTION_WIDTH = 16; const int SECTION_LENGTH = 16; @@ -19,17 +19,18 @@ class Section { byte m_bitsPerBlock = 0; std::vector<Block> m_blocks; std::condition_variable parseWaiter; + + Section(); + public: void Parse(); Section(byte *dataBlocks, size_t dataBlocksLength, byte *dataLight, byte *dataSky, byte bitsPerBlock, std::vector<unsigned short> palette); - Section(); - ~Section(); - Block &GetBlock(PositionI pos); + Block &GetBlock(Vector pos); Section &operator=(Section other); |