X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FBlockType.hpp;h=4208d94665d29ed56436b8662a406427f787b0b8;hb=b61d462707dd3d40a32a6104d88eb24f6a52df63;hp=5fab9318dd2c44b5bd7066d048ca142b4dcc99eb;hpb=3542823a1af7f5063d7cc8da84efa248eb889b8a;p=blank.git diff --git a/src/world/BlockType.hpp b/src/world/BlockType.hpp index 5fab931..4208d94 100644 --- a/src/world/BlockType.hpp +++ b/src/world/BlockType.hpp @@ -5,7 +5,7 @@ #include "../graphics/BlockMesh.hpp" #include "../graphics/EntityMesh.hpp" #include "../graphics/OutlineMesh.hpp" -#include "../model/shapes.hpp" +#include "../model/bounds.hpp" #include @@ -16,7 +16,7 @@ namespace blank { /// attributes of a type of block struct BlockType { - const Shape *shape; + const CollisionBounds *shape; float texture; glm::vec3 hsl_mod; glm::vec3 rgb_mod; @@ -75,7 +75,7 @@ struct BlockType { BlockType() noexcept; - static const NullShape DEFAULT_SHAPE; + static const NullBounds DEFAULT_SHAPE; bool FaceFilled(const Block &block, Block::Face face) const noexcept { return fill[block.OrientedFace(face)];