mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
...and the map part of that
This commit is contained in:
13
src/map.h
13
src/map.h
@@ -41,6 +41,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include "mapchunk.h"
|
#include "mapchunk.h"
|
||||||
#include "nodemetadata.h"
|
#include "nodemetadata.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
Temporarily exposed map generator stuff
|
||||||
|
Should only be used for testing
|
||||||
|
*/
|
||||||
|
|
||||||
|
double base_rock_level_2d(u64 seed, v2s16 p);
|
||||||
|
|
||||||
|
/*
|
||||||
|
MapEditEvent
|
||||||
|
*/
|
||||||
|
|
||||||
#define MAPTYPE_BASE 0
|
#define MAPTYPE_BASE 0
|
||||||
#define MAPTYPE_SERVER 1
|
#define MAPTYPE_SERVER 1
|
||||||
#define MAPTYPE_CLIENT 2
|
#define MAPTYPE_CLIENT 2
|
||||||
@@ -592,6 +603,8 @@ public:
|
|||||||
|
|
||||||
bool isSavingEnabled(){ return m_map_saving_enabled; }
|
bool isSavingEnabled(){ return m_map_saving_enabled; }
|
||||||
|
|
||||||
|
u64 getSeed(){ return m_seed; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Seed used for all kinds of randomness
|
// Seed used for all kinds of randomness
|
||||||
u64 m_seed;
|
u64 m_seed;
|
||||||
|
Reference in New Issue
Block a user