aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-06-05 21:07:54 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-06-05 21:07:54 +0300
commitfdee31abf1ec41434cae843c30847dad5ce4388b (patch)
tree9454a1154590be0b62adf60fb732eb742398fb1e /src
parentc68f21214dfea8184810f5dd91800b61910551fd (diff)
downloadminetest-fdee31abf1ec41434cae843c30847dad5ce4388b.tar.gz
minetest-fdee31abf1ec41434cae843c30847dad5ce4388b.tar.bz2
minetest-fdee31abf1ec41434cae843c30847dad5ce4388b.zip
...and the map part of that
Diffstat (limited to 'src')
-rw-r--r--src/map.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h
index 6f7ac0d3b..e74f89beb 100644
--- a/src/map.h
+++ b/src/map.h
@@ -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 @@ public:
bool isSavingEnabled(){ return m_map_saving_enabled; }
+ u64 getSeed(){ return m_seed; }
+
private:
// Seed used for all kinds of randomness
u64 m_seed;