implement structures rotation

This commit is contained in:
MihailRis
2024-09-22 01:58:59 +03:00
parent 001b930212
commit 74ded5a052
7 changed files with 67 additions and 14 deletions
+7 -3
View File
@@ -1,12 +1,16 @@
#pragma once
#include <stdint.h>
#include <glm/glm.hpp>
struct StructurePlacement {
int structure;
glm::ivec3 position;
uint8_t rotation;
StructurePlacement(int structure, glm::ivec3 position)
: structure(structure), position(std::move(position)) {}
StructurePlacement(int structure, glm::ivec3 position, uint8_t rotation)
: structure(structure),
position(std::move(position)),
rotation(rotation) {
}
};