Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Mapgen: Refactor mapgen creation and management
- Move mapgen creation logic out of EmergeManager and into Mapgen - Internally represent mapgen type as an enum value, instead of a string - Remove the need for a MapgenFactory per mapgen
- Loading branch information
Showing
with
160 additions
and 164 deletions.
- +9 −59 src/emerge.cpp
- +0 −3 src/emerge.h
- +109 −3 src/mapgen.cpp
- +24 −9 src/mapgen.h
- +2 −12 src/mapgen_flat.h
- +2 −12 src/mapgen_fractal.h
- +4 −13 src/mapgen_singlenode.h
- +2 −13 src/mapgen_v5.h
- +2 −14 src/mapgen_v6.h
- +2 −12 src/mapgen_v7.h
- +2 −12 src/mapgen_valleys.h
- +2 −2 src/script/lua_api/l_mainmenu.cpp
Oops, something went wrong.