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

struct Block {
    Block();

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

    ~Block();

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

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