mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
add generator 'caption' property
This commit is contained in:
parent
7c56d8fd7f
commit
de00414456
11 changed files with 59 additions and 21 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -192,6 +192,9 @@ struct VoxelStructure {
|
|||
struct GeneratorDef {
|
||||
/// @brief Generator full name - packid:name
|
||||
std::string name;
|
||||
/// @brief Generator display name
|
||||
std::string caption;
|
||||
|
||||
std::unique_ptr<GeneratorScript> script;
|
||||
|
||||
/// @brief Sea level (top of seaLayers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue