mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
blocks and items 'caption' property
This commit is contained in:
parent
c9da6b9a0c
commit
5c3b61265a
10 changed files with 44 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "Block.h"
|
||||
|
||||
#include "../core_defs.h"
|
||||
#include "../util/stringutil.h"
|
||||
|
||||
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
|
||||
: axisX(axisX), axisY(axisY), axisZ(axisZ)
|
||||
|
|
@ -42,6 +43,7 @@ Block::Block(std::string name)
|
|||
textureFaces {TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,
|
||||
TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND} {
|
||||
rotations = BlockRotProfile::PIPE;
|
||||
caption = util::id_to_caption(name);
|
||||
}
|
||||
|
||||
Block::Block(std::string name, std::string texture) : name(name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue