blob: 74ac406bae7512a7592c03296f4b5d02a8c3e914 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <world/Block.hpp>
Block::~Block() {}
Block::Block(unsigned short id, unsigned char state) : id(id), state(state) {}
Block::Block() : id(0), state(0) {}
bool operator<(const Block &lhs, const Block &rhs) {
if (lhs.id < rhs.id)
return true;
if (lhs.id == rhs.id) {
if (lhs.state != rhs.state)
return lhs.state < rhs.state;
}
return false;
}
|