aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-05-22 16:27:31 -0400
committerkwolekr <kwolekr@minetest.net>2016-05-27 23:23:58 -0400
commitfd0efb21c3d40a963a813d73a09bb80df625b247 (patch)
treeda5d49dfb93dd854b93a325a264e896482549e78 /src/mapgen.h
parent081090176666e849d01f9a02b15279bdf72570bc (diff)
downloadminetest-fd0efb21c3d40a963a813d73a09bb80df625b247.tar.gz
minetest-fd0efb21c3d40a963a813d73a09bb80df625b247.tar.bz2
minetest-fd0efb21c3d40a963a813d73a09bb80df625b247.zip
Mapgen: Combine dungeon generation code
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 0b552e508..10595fafc 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -219,9 +219,10 @@ public:
MapgenBasic(int mapgenid, MapgenParams *params, EmergeManager *emerge);
virtual ~MapgenBasic();
+ virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth);
+ virtual void generateDungeons(s16 max_stone_y, MgStoneType stone_type);
virtual MgStoneType generateBiomes();
virtual void dustTopNodes();
- virtual void generateCaves(s16 max_stone_y, s16 large_cave_depth);
protected:
EmergeManager *m_emerge;
@@ -234,12 +235,20 @@ protected:
v3s16 full_node_min;
v3s16 full_node_max;
+ // Content required for generateBiomes
content_t c_stone;
content_t c_water_source;
content_t c_river_water_source;
content_t c_desert_stone;
content_t c_sandstone;
+ // Content required for generateDungeons
+ content_t c_cobble;
+ content_t c_stair_cobble;
+ content_t c_mossycobble;
+ content_t c_sandstonebrick;
+ content_t c_stair_sandstonebrick;
+
int ystride;
int zstride;
int zstride_1d;