add generator 'caption' property

This commit is contained in:
MihailRis
2024-10-13 22:53:12 +03:00
parent 7c56d8fd7f
commit de00414456
11 changed files with 59 additions and 21 deletions
+3 -2
View File
@@ -10,8 +10,9 @@ VoxelStructure::VoxelStructure(
std::unique_ptr<VoxelFragment> structure
) : fragments({std::move(structure)}), meta(std::move(meta)) {}
GeneratorDef::GeneratorDef(std::string name) : name(std::move(name)) {}
GeneratorDef::GeneratorDef(std::string name)
: name(std::move(name)), caption(util::id_to_caption(name)) {
}
void GeneratorDef::prepare(const Content* content) {
for (auto& biome : biomes) {