summaryrefslogtreecommitdiffstats
path: root/src/world/Block.hpp
blob: ae952c985fe7f5869dc3ffbdc66a7b8d328fc2a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

struct Block {
    Block();

    Block(unsigned short idAndState, unsigned char light);

    Block(unsigned short id, unsigned char state, unsigned char light);

    ~Block();

    unsigned short id:13;
    unsigned char state:4;
    //unsigned char light:4;
};

bool operator<(const Block &lhs, const Block &rhs);