Minor refactor

This commit is contained in:
MihailRis 2023-12-05 14:05:36 +03:00
parent a691526693
commit 2e98aa39d9
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,8 @@
const int BLOCK_AIR = 0;
const std::string TEXTURE_NOTFOUND = "notfound";
const std::string BIND_MOVE_FORWARD = "movement.forward";
const std::string BIND_MOVE_BACK = "movement.back";
const std::string BIND_MOVE_LEFT = "movement.left";

View File

@ -1,5 +1,7 @@
#include "Block.h"
#include "../core_defs.h"
using glm::vec3;
void CoordSystem::transform(AABB& aabb) {
@ -34,8 +36,8 @@ const BlockRotProfile BlockRotProfile::PANE {"pane", {
Block::Block(std::string name)
: name(name),
textureFaces {"notfound","notfound","notfound",
"notfound","notfound","notfound",} {
textureFaces {TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,
TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,TEXTURE_NOTFOUND,} {
rotations = BlockRotProfile::PIPE;
}