diff options
author | kwolekr <kwolekr@minetest.net> | 2013-06-26 17:19:39 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-06-27 22:35:35 -0400 |
commit | 8aa930f28e69f3518831500022988ca2a4b6985d (patch) | |
tree | 5699c9b0cd8eaa54f4fadf8dcd7d0ba98a9c3c74 /src/mapgen.h | |
parent | 2c0b51795e6fa6747d881f1871c89830abb6e6e8 (diff) | |
download | minetest-8aa930f28e69f3518831500022988ca2a4b6985d.tar.gz minetest-8aa930f28e69f3518831500022988ca2a4b6985d.tar.bz2 minetest-8aa930f28e69f3518831500022988ca2a4b6985d.zip |
Add minetest.get_mapgen_object to API
Diffstat (limited to 'src/mapgen.h')
-rw-r--r-- | src/mapgen.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h index 0ed64f85c..96a27ade7 100644 --- a/src/mapgen.h +++ b/src/mapgen.h @@ -93,8 +93,10 @@ public: int id; ManualMapVoxelManipulator *vm; INodeDefManager *ndef; + s16 *heightmap; u8 *biomemap; + v3s16 csize; Mapgen(); virtual ~Mapgen() {} @@ -124,6 +126,14 @@ struct MapgenFactory { virtual ~MapgenFactory() {} }; +enum MapgenObject { + MGOBJ_VMANIP, + MGOBJ_HEIGHTMAP, + MGOBJ_BIOMEMAP, + MGOBJ_HEATMAP, + MGOBJ_HUMIDMAP +}; + enum OreType { ORE_SCATTER, ORE_SHEET, |