feat: 'stairs' rotation profile

This commit is contained in:
MihailRis
2025-04-30 20:21:59 +03:00
parent 50aae8b98b
commit 9463917164
4 changed files with 33 additions and 1 deletions
+16
View File
@@ -91,6 +91,22 @@ const BlockRotProfile BlockRotProfile::PANE {
4
};
const BlockRotProfile BlockRotProfile::STAIRS {
"stairs",
{
{{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}, // North
{{0, 0, -1}, {0, 1, 0}, {1, 0, 0}}, // East
{{-1, 0, 0}, {0, 1, 0}, {0, 0, -1}}, // South
{{0, 0, 1}, {0, 1, 0}, {-1, 0, 0}}, // West
{{-1, 0, 0}, {0, -1, 0}, {0, 0, 1}},
{{0, 0, 1}, {0, -1, 0}, {1, 0, 0}},
{{1, 0, 0}, {0, -1, 0}, {0, 0, -1}},
{{0, 0, -1}, {0, -1, 0}, {-1, 0, 0}},
},
8
};
Block::Block(const std::string& name)
: name(name),
caption(util::id_to_caption(name)),
+4
View File
@@ -77,8 +77,12 @@ struct BlockRotProfile {
/// @brief Doors, signs and other panes
static const BlockRotProfile PANE;
/// @brief Stairs, stairs and stairs
static const BlockRotProfile STAIRS;
static inline std::string PIPE_NAME = "pipe";
static inline std::string PANE_NAME = "pane";
static inline std::string STAIRS_NAME = "stairs";
};
enum class BlockModelType {