diff options
author | Kahrl <kahrl@gmx.net> | 2013-08-11 04:09:45 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-08-14 21:03:33 +0200 |
commit | 4e1f50035e860a00636ca5d804c267119df99601 (patch) | |
tree | c6cab522305ef2a5b9cfdb3685340d57590f1ff1 /doc/menu_lua_api.txt | |
parent | 6228d634fb31d1ce925d1fdc2dac022629a007ef (diff) | |
download | minetest-4e1f50035e860a00636ca5d804c267119df99601.tar.gz minetest-4e1f50035e860a00636ca5d804c267119df99601.tar.bz2 minetest-4e1f50035e860a00636ca5d804c267119df99601.zip |
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
Diffstat (limited to 'doc/menu_lua_api.txt')
-rw-r--r-- | doc/menu_lua_api.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index 164d7876a..3812f11fd 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -127,11 +127,19 @@ engine.get_favorites(location) -> list of favorites } engine.delete_favorite(id, location) -> success +Logging: +engine.debug(line) +^ Always printed to stderr and logfile (print() is redirected here) +engine.log(line) +engine.log(loglevel, line) +^ loglevel one of "error", "action", "info", "verbose" + Settings: engine.setting_set(name, value) engine.setting_get(name) -> string or nil engine.setting_setbool(name, value) engine.setting_getbool(name) -> bool or nil +engine.setting_save() -> nil, save all settings to config file Worlds: engine.get_worlds() -> list of worlds @@ -164,4 +172,4 @@ dump(obj, dumped={}) string:split(separator) ^ eg. string:split("a,b", ",") == {"a","b"} string:trim() -^ eg. string.trim("\n \t\tfoo bar\t ") == "foo bar"
\ No newline at end of file +^ eg. string.trim("\n \t\tfoo bar\t ") == "foo bar" |