]> git.lizzy.rs Git - minetest.git/commitdiff
...and the map part of that
authorPerttu Ahola <celeron55@gmail.com>
Sun, 5 Jun 2011 18:07:54 +0000 (21:07 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 5 Jun 2011 18:07:54 +0000 (21:07 +0300)
src/map.h

index 6f7ac0d3bfc5a591f6ac5d2dc99ea47ed5642261..e74f89bebcf6137f524d5d55530ab268d5afa30b 100644 (file)
--- 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 @@ 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;