1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Mapgen selection and init code

This commit is contained in:
Xeno333 2025-06-10 18:00:45 -05:00
parent aba2b6638e
commit f9bad58d77
14 changed files with 211 additions and 59 deletions

View file

@ -109,6 +109,8 @@ of manually putting one, as different OSs use different delimiters. E.g.
* `handle:stop()` or `core.sound_stop(handle)`
* `core.get_mapgen_names([include_hidden=false])` -> table of map generator algorithms
registered in the core (possible in async calls)
* `core.get_lua_mapgen_descriptions()` -> map of `[mapgen_name] = mapgen_description` as listed
in `mapgen.conf`.
* `core.get_cache_path()` -> path of cache
* `core.get_temp_path([param])` (possible in async calls)
* `param`=true: returns path to a newly created temporary file