X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlock.hpp;h=5f52d173882903af05a8346561842d0f77006f52;hb=57f4a76edbfd6c2b6077047e9fba31788d161b44;hp=274e3d3c3120369eb8915c752db357c8b8b80b23;hpb=549646ac3e5bede5e77031f773649edf8de83608;p=blank.git diff --git a/src/world/Block.hpp b/src/world/Block.hpp index 274e3d3..5f52d17 100644 --- a/src/world/Block.hpp +++ b/src/world/Block.hpp @@ -131,7 +131,13 @@ private: }; -bool operator ==(const Block &, const Block &); +inline bool operator ==(const Block &a, const Block &b) { + return a.type == b.type && a.orient == b.orient; +} + +inline bool operator !=(const Block &a, const Block &b) { + return !(a == b); +} std::ostream &operator <<(std::ostream &, const Block &); std::ostream &operator <<(std::ostream &, const Block::Face &);