1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Load dependencies and description from mod.conf

This commit is contained in:
Andrew Ward 2018-03-28 22:14:16 +01:00 committed by GitHub
parent dfc8198349
commit 71b2570f09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 237 additions and 140 deletions

View file

@ -111,7 +111,7 @@ core.get_screen_info()
window_height = <current window height>
}
Games:
Packages:
core.get_game(index)
^ returns {
id = <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)