X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fblock.hpp;h=0f567c4b5fdf3400b5209ed64c76766a00f4fb88;hb=7caa2326d25d4fc5ba98318dfccb508bb3e16820;hp=a757740b77000e6768c2519b6a696c4eef833a74;hpb=eca1fdcc8e34a4918418b2de122c6200aeb7ceaf;p=blank.git diff --git a/src/block.hpp b/src/block.hpp index a757740..0f567c4 100644 --- a/src/block.hpp +++ b/src/block.hpp @@ -29,7 +29,6 @@ struct BlockType { const glm::vec3 &outline_color = { -1, -1, -1 }) : id(-1), visible(v), shape(shape), color(color), outline_color(outline_color) { } - static const BlockType DEFAULT; static const NullShape DEFAULT_SHAPE; @@ -83,10 +82,10 @@ struct Block { using Pos = glm::vec3; - const BlockType *type; + int type; - constexpr explicit Block(const BlockType *t = &BlockType::DEFAULT) - : type(t) { } + constexpr explicit Block(int type = 0) + : type(type) { } };