1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Add core.get_mapgen_names() to Main Menu API (and use it)

Also rewrite mapgen registration for static initialization
This commit is contained in:
kwolekr
2014-12-29 21:23:51 -05:00
parent 5e2753c712
commit ca89e63b27
6 changed files with 60 additions and 36 deletions

View File

@@ -143,6 +143,8 @@ core.get_game(index)
addon_mods_paths = {[1] = <path>,},
}
core.get_games() -> table of all games in upper format (possible in async calls)
core.get_mapgen_names() -> table of all map generator algorithms registered in
the core (possible in async calls)
Favorites:
core.get_favorites(location) -> list of favorites (possible in async calls)