aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-07-28 03:31:11 +0100
committerparamat <mat.gregory@virginmedia.com>2017-07-30 18:40:55 +0100
commitb20d01a3f19ea7ad1e788077af1ed5769648e3a1 (patch)
tree2d30ee6e8771bfddeb5140e4304e03795ef81190 /src/mapgen.h
parent238d752fa3021fa7294a4df79bfa0b8a46f4a018 (diff)
downloadminetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.tar.gz
minetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.tar.bz2
minetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.zip
Dungeons: Use biome 'node_stone' if normal stone types not detected
Construct dungeons from the node defined as biome 'node_stone' if 'mapgen_stone', 'mapgen_desert_stone' and 'mapgen_sandstone' are not detected. Feature long-intended by kwolekr/hmmmm and present in code as a TODO.
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 7f4b76c3e..931622d3c 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -79,11 +79,11 @@ enum GenNotifyType {
NUM_GENNOTIFY_TYPES
};
-// TODO(hmmmm/paramat): make stone type selection dynamic
enum MgStoneType {
MGSTONE_STONE,
MGSTONE_DESERT_STONE,
MGSTONE_SANDSTONE,
+ MGSTONE_OTHER,
};
struct GenNotifyEvent {
@@ -250,8 +250,10 @@ public:
virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth);
virtual bool generateCaverns(s16 max_stone_y);
- virtual void generateDungeons(s16 max_stone_y, MgStoneType stone_type);
- virtual MgStoneType generateBiomes(s16 biome_zero_level = 0);
+ virtual void generateDungeons(s16 max_stone_y,
+ MgStoneType stone_type, content_t biome_stone);
+ virtual void generateBiomes(MgStoneType *mgstone_type,
+ content_t *biome_stone, s16 biome_zero_level);
virtual void dustTopNodes();
protected: