1
0
Fork 0
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:
kwolekr 2013-01-21 13:40:05 -05:00 committed by Perttu Ahola
parent 318669327e
commit b87cd8c58b
4 changed files with 24 additions and 23 deletions

View file

@ -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);
};