]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Block.hpp
show camera position in debug overlay
[blank.git] / src / world / Block.hpp
index 74af3e4ab4bbf025e342674e6bc7eff986bf2d7a..0bb5fd8964b0655dae6addb1dd49903cf89d08ff 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BLANK_WORLD_BLOCK_HPP_
 #define BLANK_WORLD_BLOCK_HPP_
 
+#include <iosfwd>
 #include <glm/glm.hpp>
 
 
@@ -98,7 +99,7 @@ struct Block {
                        value |= Mask(f);
                }
                void Unset(Face f) {
-                       value |= ~Mask(f);
+                       value &= ~Mask(f);
                }
 
                void Clear() {
@@ -130,6 +131,12 @@ private:
 
 };
 
+bool operator ==(const Block &, const Block &);
+
+std::ostream &operator <<(std::ostream &, const Block &);
+std::ostream &operator <<(std::ostream &, const Block::Face &);
+std::ostream &operator <<(std::ostream &, const Block::Turn &);
+
 }
 
 #endif