VOX
A little voxel engine
Loading...
Searching...
No Matches
StructureInfo Class Reference

#include <Structures.hpp>

Collaboration diagram for StructureInfo:
Collaboration graph

Public Types

enum class  Type : uint16_t { Tree , None }
 

Public Member Functions

 StructureInfo ()=delete
 
 StructureInfo (const Type &type, const glm::ivec3 &size, const std::vector< std::vector< std::vector< BlockInfo::Type > > > &blocks)
 
BlockInfo::Type getBlock (const glm::ivec3 &pos) const
 

Public Attributes

enum StructureInfo::Type id = Type::None
 
const glm::ivec3 size = { 0, 0, 0 }
 

Member Enumeration Documentation

◆ Type

enum class StructureInfo::Type : uint16_t
strong
Enumerator
Tree 
None 

Constructor & Destructor Documentation

◆ StructureInfo() [1/2]

StructureInfo::StructureInfo ( )
delete

◆ StructureInfo() [2/2]

StructureInfo::StructureInfo ( const Type type,
const glm::ivec3 &  size,
const std::vector< std::vector< std::vector< BlockInfo::Type > > > &  blocks 
)
inline

Member Function Documentation

◆ getBlock()

BlockInfo::Type StructureInfo::getBlock ( const glm::ivec3 &  pos) const
inline

Member Data Documentation

◆ id

enum StructureInfo::Type StructureInfo::id = Type::None

◆ size

const glm::ivec3 StructureInfo::size = { 0, 0, 0 }

The documentation for this class was generated from the following file: