mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Add Ore infrastructure and l_register_ore()
This commit is contained in:
parent
f70378f7f5
commit
57cbb8bfd8
10 changed files with 248 additions and 17 deletions
|
@ -91,6 +91,8 @@ struct MapgenV6Params : public MapgenParams {
|
|||
|
||||
class MapgenV6 : public Mapgen {
|
||||
public:
|
||||
EmergeManager *emerge;
|
||||
|
||||
int ystride;
|
||||
v3s16 csize;
|
||||
u32 flags;
|
||||
|
@ -128,7 +130,7 @@ public:
|
|||
content_t c_desert_sand;
|
||||
content_t c_desert_stone;
|
||||
|
||||
MapgenV6(int mapgenid, MapgenV6Params *params);
|
||||
MapgenV6(int mapgenid, MapgenV6Params *params, EmergeManager *emerge);
|
||||
~MapgenV6();
|
||||
|
||||
void makeChunk(BlockMakeData *data);
|
||||
|
@ -172,7 +174,7 @@ public:
|
|||
|
||||
struct MapgenFactoryV6 : public MapgenFactory {
|
||||
Mapgen *createMapgen(int mgid, MapgenParams *params, EmergeManager *emerge) {
|
||||
return new MapgenV6(mgid, (MapgenV6Params *)params);
|
||||
return new MapgenV6(mgid, (MapgenV6Params *)params, emerge);
|
||||
};
|
||||
|
||||
MapgenParams *createMapgenParams() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue