mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Rewrite generate notification mechanism
Add support for notify-on-decoration Clean up mapgen constructors Clean up mapgen.cpp code style somewhat Remove trailing whitespace from some files
This commit is contained in:
@@ -41,7 +41,7 @@ struct MapgenV5Params : public MapgenSpecificParams {
|
||||
|
||||
MapgenV5Params();
|
||||
~MapgenV5Params() {}
|
||||
|
||||
|
||||
void readParams(Settings *settings);
|
||||
void writeParams(Settings *settings);
|
||||
};
|
||||
@@ -54,7 +54,6 @@ public:
|
||||
|
||||
int ystride;
|
||||
int zstride;
|
||||
u32 flags;
|
||||
u32 spflags;
|
||||
|
||||
u32 blockseed;
|
||||
@@ -62,7 +61,7 @@ public:
|
||||
v3s16 node_max;
|
||||
v3s16 full_node_min;
|
||||
v3s16 full_node_max;
|
||||
|
||||
|
||||
Noise *noise_filler_depth;
|
||||
Noise *noise_factor;
|
||||
Noise *noise_height;
|
||||
@@ -92,7 +91,7 @@ public:
|
||||
|
||||
MapgenV5(int mapgenid, MapgenParams *params, EmergeManager *emerge_);
|
||||
~MapgenV5();
|
||||
|
||||
|
||||
virtual void makeChunk(BlockMakeData *data);
|
||||
int getGroundLevelAtPoint(v2s16 p);
|
||||
void calculateNoise();
|
||||
@@ -107,7 +106,7 @@ struct MapgenFactoryV5 : public MapgenFactory {
|
||||
Mapgen *createMapgen(int mgid, MapgenParams *params, EmergeManager *emerge) {
|
||||
return new MapgenV5(mgid, params, emerge);
|
||||
};
|
||||
|
||||
|
||||
MapgenSpecificParams *createMapgenParams() {
|
||||
return new MapgenV5Params();
|
||||
};
|
||||
|
Reference in New Issue
Block a user