mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Add for async and documentation
This commit is contained in:
parent
5e018c4f5f
commit
90873d62cb
2 changed files with 3 additions and 0 deletions
|
@ -109,6 +109,8 @@ of manually putting one, as different OSs use different delimiters. E.g.
|
||||||
* `handle:stop()` or `core.sound_stop(handle)`
|
* `handle:stop()` or `core.sound_stop(handle)`
|
||||||
* `core.get_mapgen_names([include_hidden=false])` -> table of map generator algorithms
|
* `core.get_mapgen_names([include_hidden=false])` -> table of map generator algorithms
|
||||||
registered in the core (possible in async calls)
|
registered in the core (possible in async calls)
|
||||||
|
* `core.get_mapgen_descriptions([include_hidden=false])` -> table of map generator descriptions,
|
||||||
|
in the same order as returned by `core.get_mapgen_names` registered in the core (possible in async calls)
|
||||||
* `core.get_cache_path()` -> path of cache
|
* `core.get_cache_path()` -> path of cache
|
||||||
* `core.get_temp_path([param])` (possible in async calls)
|
* `core.get_temp_path([param])` (possible in async calls)
|
||||||
* `param`=true: returns path to a newly created temporary file
|
* `param`=true: returns path to a newly created temporary file
|
||||||
|
|
|
@ -1117,6 +1117,7 @@ void ModApiMainMenu::InitializeAsync(lua_State *L, int top)
|
||||||
API_FCT(get_worlds);
|
API_FCT(get_worlds);
|
||||||
API_FCT(get_games);
|
API_FCT(get_games);
|
||||||
API_FCT(get_mapgen_names);
|
API_FCT(get_mapgen_names);
|
||||||
|
API_FCT(get_mapgen_descriptions);
|
||||||
API_FCT(get_user_path);
|
API_FCT(get_user_path);
|
||||||
API_FCT(get_modpath);
|
API_FCT(get_modpath);
|
||||||
API_FCT(get_modpaths);
|
API_FCT(get_modpaths);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue