summaryrefslogtreecommitdiffstats
path: root/src/world/Section.hpp
diff options
context:
space:
mode:
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);