summaryrefslogtreecommitdiffstats
path: root/Block.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
commit71760514fc044f273914c17b1510fa3cf10419b3 (patch)
tree72f822efde300d8e1e9de1cc578d431ff72e0e03 /Block.hpp
parent2017-04-15 (diff)
downloadAltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.gz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.bz2
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.lz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.xz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.zst
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.zip
Diffstat (limited to 'Block.hpp')
-rw-r--r--Block.hpp27
1 files changed, 8 insertions, 19 deletions
diff --git a/Block.hpp b/Block.hpp
index 0272e1f..7c780c1 100644
--- a/Block.hpp
+++ b/Block.hpp
@@ -1,26 +1,15 @@
#pragma once
-#include "PositionI.hpp"
-
-class Block {
-public:
- Block(int id = 0, unsigned char state = 0, unsigned char light = 15, PositionI position = PositionI());
-
+struct Block {
Block(unsigned short idAndState, unsigned char light);
- ~Block();
-
- int GetId();
-
- int GetState();
+ Block(unsigned short id, unsigned char state, unsigned char light);
- int GetLight();
+ Block();
-private:
- int m_id;
- unsigned char m_light;
- PositionI m_position;
- unsigned char m_state;
- //NbtTree* nbt;
-};
+ ~Block();
+ unsigned short id:13;
+ unsigned char state:4;
+ unsigned char light:4;
+}; \ No newline at end of file