Skip to content
Snippets Groups Projects
Commit fdee31ab authored by Perttu Ahola's avatar Perttu Ahola
Browse files

...and the map part of that

parent c68f2121
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mapchunk.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_SERVER 1
#define MAPTYPE_CLIENT 2
......@@ -592,6 +603,8 @@ class ServerMap : public Map
bool isSavingEnabled(){ return m_map_saving_enabled; }
u64 getSeed(){ return m_seed; }
private:
// Seed used for all kinds of randomness
u64 m_seed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment