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

#include <Block.hpp>

Collaboration diagram for BlockInfo:
Collaboration graph

Public Types

enum class  Type : uint16_t {
  Air , Grass , Dirt , Stone ,
  Sand , Water , Glass , Light ,
  Wood , Leaves , None
}
 

Public Attributes

enum BlockInfo::Type id = Type::None
 
const TextureID texture [6]
 
const BlockProperties properties
 
const HitBox hitbox
 
const uint8_t emit_light
 
const uint8_t absorb_light
 

Static Public Attributes

static const std::vector< std::string > texture_names
 

Member Enumeration Documentation

◆ Type

enum class BlockInfo::Type : uint16_t
strong
Enumerator
Air 
Grass 
Dirt 
Stone 
Sand 
Water 
Glass 
Light 
Wood 
Leaves 
None 

Member Data Documentation

◆ absorb_light

const uint8_t BlockInfo::absorb_light

◆ emit_light

const uint8_t BlockInfo::emit_light

◆ hitbox

const HitBox BlockInfo::hitbox

◆ id

enum BlockInfo::Type BlockInfo::id = Type::None

◆ properties

const BlockProperties BlockInfo::properties

◆ texture

const TextureID BlockInfo::texture[6]

◆ texture_names

const std::vector<std::string> BlockInfo::texture_names
inlinestatic
Initial value:
= {
"assets/textures/block/grass_top.png",
"assets/textures/block/grass_top.png",
"assets/textures/block/grass_side.png",
"assets/textures/block/dirt.png",
"assets/textures/block/stone.png",
"assets/textures/block/water.png",
"assets/textures/block/glass_clear.png",
"assets/textures/block/light.png",
"assets/textures/block/wood_top.png",
"assets/textures/block/wood.png",
"assets/textures/block/oak_leaves.png",
"assets/textures/block/sand.png"
}

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