From c8be58a65ce5f06bc23353b41caf9495e3b9d484 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 28 Feb 2011 02:01:40 +0200 Subject: A third try on terrain generation. No trees yet. --- src/map.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 1cebef634..0692f2b23 100644 --- a/src/map.h +++ b/src/map.h @@ -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; -- cgit v1.2.3