From 71b2570f0919d3bb5575c9ec694ecd004222fcea Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Wed, 28 Mar 2018 22:14:16 +0100 Subject: Load dependencies and description from mod.conf --- doc/menu_lua_api.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc/menu_lua_api.txt') diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index 1d158f304..49c6fbef0 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -111,7 +111,7 @@ core.get_screen_info() window_height = } -Games: +Packages: core.get_game(index) ^ returns { id = , @@ -125,6 +125,15 @@ core.get_game(index) core.get_games() -> table of all games in upper format (possible in async calls) core.get_mapgen_names([include_hidden=false]) -> table of map generator algorithms registered in the core (possible in async calls) +core.get_mod_info(path) +^ returns { + name = "name of mod", + type = "mod" or "modpack", + description = "description", + path = "path/to/mod", + depends = {"mod", "names"}, + optional_depends = {"mod", "names"}, +} Favorites: core.get_favorites(location) -> list of favorites (possible in async calls) -- cgit v1.2.3