mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Biome API / dungeons: Add biome-defined dungeon nodes
Add new biome fields 'node_dungeon', 'node_dungeon_alt', 'node_dungeon_stair'. If 'node_dungeon' is not defined dungeons fall back to classic behaviour. Remove messy and imprecise dungeon material code from 'generateBiomes()'. Code deciding dungeon materials is now in 'generateDungeons()' and uses the biome at mapchunk centre for more precision. Remove hardcoded 'MG_STONE' types as long intended.
This commit is contained in:
parent
460b375cad
commit
746ca41f58
12 changed files with 97 additions and 97 deletions
|
@ -77,13 +77,6 @@ enum GenNotifyType {
|
|||
NUM_GENNOTIFY_TYPES
|
||||
};
|
||||
|
||||
enum MgStoneType {
|
||||
MGSTONE_STONE,
|
||||
MGSTONE_DESERT_STONE,
|
||||
MGSTONE_SANDSTONE,
|
||||
MGSTONE_OTHER,
|
||||
};
|
||||
|
||||
struct GenNotifyEvent {
|
||||
GenNotifyType type;
|
||||
v3s16 pos;
|
||||
|
@ -247,10 +240,8 @@ 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, content_t biome_stone);
|
||||
virtual void generateBiomes(MgStoneType *mgstone_type,
|
||||
content_t *biome_stone);
|
||||
virtual void generateDungeons(s16 max_stone_y);
|
||||
virtual void generateBiomes();
|
||||
virtual void dustTopNodes();
|
||||
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue