diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-28 02:01:40 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-28 02:01:40 +0200 |
commit | c8be58a65ce5f06bc23353b41caf9495e3b9d484 (patch) | |
tree | 1dc57a45f1fac9c2f7730bb2c80201e46ec70997 /src/map.h | |
parent | 5707c309c9c84589a964067477027b775a511aeb (diff) | |
download | hax-minetest-server-c8be58a65ce5f06bc23353b41caf9495e3b9d484.tar.gz hax-minetest-server-c8be58a65ce5f06bc23353b41caf9495e3b9d484.zip |
A third try on terrain generation. No trees yet.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -40,6 +40,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "voxel.h" #include "mapchunk.h" +/* + Some exposed functions +*/ + +double base_rock_level_2d(u64 seed, v2f p); + +/* +*/ + #define MAPTYPE_BASE 0 #define MAPTYPE_SERVER 1 #define MAPTYPE_CLIENT 2 @@ -531,6 +540,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; |