blob: c3dfcec4927fb282409e4acb804ab255e90611de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
struct Block {
Block();
Block(unsigned short id, unsigned char state, unsigned char light, unsigned char sky);
~Block();
unsigned short id : 13;
unsigned char state : 4;
unsigned char light : 4;
unsigned char sky : 4;
};
struct BlockId {
unsigned short id : 13;
unsigned char state : 4;
};
bool operator==(const BlockId& lhs, const BlockId &rhs);
bool operator<(const BlockId& lhs, const BlockId &rhs);
|