Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add MapSettingsManager and new mapgen setting script API functions
This commit refactors the majority of the Mapgen settings system. - MapgenParams is now owned by MapSettingsManager, itself a part of ServerMap, instead of the EmergeManager. - New Script API functions added: core.get_mapgen_setting core.get_mapgen_setting_noiseparams, core.set_mapgen_setting, and core.set_mapgen_setting_noiseparams. - minetest.get/set_mapgen_params are deprecated by the above new functions. - It is now possible to view and modify any arbitrary mapgen setting from a mod, rather than the base MapgenParams structure. - MapgenSpecificParams has been removed.
- Loading branch information
Showing
with
889 additions
and 314 deletions.
- +2 −0 build/android/jni/Android.mk
- +19 −0 doc/lua_api.txt
- +1 −0 src/CMakeLists.txt
- +12 −28 src/emerge.cpp
- +11 −4 src/emerge.h
- +26 −74 src/map.cpp
- +5 −5 src/map.h
- +194 −0 src/map_settings_manager.cpp
- +79 −0 src/map_settings_manager.h
- +31 −37 src/mapgen.cpp
- +6 −14 src/mapgen.h
- +13 −15 src/mapgen_flat.cpp
- +2 −2 src/mapgen_flat.h
- +16 −18 src/mapgen_fractal.cpp
- +2 −2 src/mapgen_fractal.h
- +1 −1 src/mapgen_singlenode.h
- +9 −11 src/mapgen_v5.cpp
- +2 −2 src/mapgen_v5.h
- +16 −17 src/mapgen_v6.cpp
- +2 −2 src/mapgen_v6.h
- +14 −16 src/mapgen_v7.cpp
- +2 −2 src/mapgen_v7.h
- +20 −21 src/mapgen_valleys.cpp
- +2 −2 src/mapgen_valleys.h
- +125 −29 src/script/lua_api/l_mapgen.cpp
- +12 −0 src/script/lua_api/l_mapgen.h
- +1 −1 src/script/lua_api/l_vmanip.cpp
- +6 −9 src/server.cpp
- +2 −2 src/subgame.cpp
- +1 −0 src/unittest/CMakeLists.txt
- +255 −0 src/unittest/test_map_settings_manager.cpp
Oops, something went wrong.