diff options
Diffstat (limited to '')
-rw-r--r-- | src/Block.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Block.cpp b/src/Block.cpp index 4c907d6..840dbcf 100644 --- a/src/Block.cpp +++ b/src/Block.cpp @@ -4,4 +4,8 @@ Block::~Block() {} Block::Block(unsigned short id, unsigned char state, unsigned char light, unsigned char sky) : id(id), state(state), light(light), sky (sky) {} -Block::Block() : id(0), state(0), light(0), sky(0) {}
\ No newline at end of file +Block::Block() : id(0), state(0), light(0), sky(0) {} + +bool operator==(const BlockId& lhs, const BlockId &rhs) { + return (lhs.id == rhs.id) && (lhs.state == rhs.state); +}
\ No newline at end of file |