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)),