diff options
Diffstat (limited to '')
-rw-r--r-- | Block.hpp | 27 |
1 files changed, 8 insertions, 19 deletions
@@ -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 |