1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00: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)