mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use a string identifier for a mapgen instead of version
This commit is contained in:
parent
318669327e
commit
b87cd8c58b
4 changed files with 24 additions and 23 deletions
|
@ -83,21 +83,21 @@ struct BlockMakeData {
|
|||
|
||||
|
||||
struct MapgenParams {
|
||||
int mg_version;
|
||||
std::string mg_name;
|
||||
int chunksize;
|
||||
u64 seed;
|
||||
int water_level;
|
||||
u32 flags;
|
||||
|
||||
MapgenParams() {
|
||||
mg_version = 6;
|
||||
mg_name = "v6";
|
||||
seed = 0;
|
||||
water_level = 1;
|
||||
chunksize = 5;
|
||||
flags = MG_TREES | MG_CAVES | MGV6_BIOME_BLEND;
|
||||
}
|
||||
|
||||
static MapgenParams *createMapgenParams(int mgver);
|
||||
static MapgenParams *createMapgenParams(std::string &mgname);
|
||||
static MapgenParams *getParamsFromSettings(Settings *settings);
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue