aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-04-27 21:02:48 -0400
committerShadowNinja <shadowninja@minetest.net>2014-05-08 13:02:04 -0400
commitc4359ff65cd8e4e754442b9f2ef7051a8eaa4241 (patch)
treefeaad8be8c36cc4a0abdbe8d7b84db3ac68ed87e /doc
parent1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528 (diff)
Use "core" namespace internally
Diffstat (limited to 'doc')
-rw-r--r--doc/menu_lua_api.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt
index 321f74a8c..109aededa 100644
--- a/doc/menu_lua_api.txt
+++ b/doc/menu_lua_api.txt
@@ -3,7 +3,7 @@ Minetest Lua Mainmenu API Reference 0.4.9
Introduction
-------------
-The main menu is defined as a formspec by Lua in builtin/mainmenu.lua
+The main menu is defined as a formspec by Lua in builtin/mainmenu/
Description of formspec language to show your menu is in lua_api.txt
Callbacks
@@ -83,7 +83,7 @@ engine.download_file(url,target) (possible in async calls)
^ target to store to
^ returns true/false
engine.get_version() (possible in async calls)
-^ returns current minetest version
+^ returns current core version
engine.sound_play(spec, looped) -> handle
^ spec = SimpleSoundSpec (see lua-api.txt)
^ looped = bool
@@ -191,14 +191,14 @@ fgettext(string, ...) -> string
^ call engine.gettext(string), replace "$1"..."$9" with the given
^ extra arguments, call engine.formspec_escape and return the result
engine.parse_json(string[, nullvalue]) -> something (possible in async calls)
-^ see minetest.parse_json (lua_api.txt)
+^ see core.parse_json (lua_api.txt)
dump(obj, dumped={})
^ Return object serialized as a string
string:split(separator)
^ eg. string:split("a,b", ",") == {"a","b"}
string:trim()
^ eg. string.trim("\n \t\tfoo bar\t ") == "foo bar"
-minetest.is_yes(arg) (possible in async calls)
+core.is_yes(arg) (possible in async calls)
^ returns whether arg can be interpreted as yes
Async:
odify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef ROLLBACK_INTERFACE_HEADER #define ROLLBACK_INTERFACE_HEADER #include "irr_v3d.h" #include <string> #include <iostream> #include <list> #include "exceptions.h" #include "inventory.h" class Map; class IGameDef; struct MapNode; class InventoryManager; struct RollbackNode { std::string name; int param1; int param2; std::string meta; bool operator == (const RollbackNode &other) { return (name == other.name && param1 == other.param1 && param2 == other.param2 && meta == other.meta); } bool operator != (const RollbackNode &other) { return !(*this == other); } RollbackNode(): param1(0), param2(0) {} RollbackNode(Map *map, v3s16 p, IGameDef *gamedef); }; struct RollbackAction { enum Type{ TYPE_NOTHING, TYPE_SET_NODE, TYPE_MODIFY_INVENTORY_STACK, } type; time_t unix_time; std::string actor; bool actor_is_guess; v3s16 p; RollbackNode n_old; RollbackNode n_new; std::string inventory_location;