22 StructureInfo(
const Type & type,
const glm::ivec3 &
size,
const std::vector<std::vector<std::vector<BlockInfo::Type>>> & blocks) :
31 const glm::ivec3
size = { 0, 0, 0 };
34 return blocks[pos.y][pos.z][pos.x];
52 return m_infos[
static_cast<size_t>(id)];
57 std::vector<StructureInfo> m_infos;
const StructuresInfo & g_structures_info
Definition: Structures.cpp:3
std::vector< std::vector< std::vector< BlockInfo::Type > > > StructureBlocks
Definition: Structures.hpp:10
Type
Definition: Block.hpp:33
Definition: Structures.hpp:13
BlockInfo::Type getBlock(const glm::ivec3 &pos) const
Definition: Structures.hpp:32
Type
Definition: Structures.hpp:16
const glm::ivec3 size
Definition: Structures.hpp:31
StructureInfo(const Type &type, const glm::ivec3 &size, const std::vector< std::vector< std::vector< BlockInfo::Type > > > &blocks)
Definition: Structures.hpp:22
enum StructureInfo::Type id
Definition: Structures.hpp:41
static const StructuresInfo & getInstance()
Definition: Structures.hpp:44
const StructureInfo & get(const StructureInfo::Type id) const
Definition: Structures.hpp:50