diff options
author | bigfoot547 <bigfoot547@users.noreply.github.com> | 2017-05-21 07:40:55 -0500 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-21 14:40:55 +0200 |
commit | dfa0c15ce045705f05487d623dc7beca6c945b4b (patch) | |
tree | 20f8e1beed4524f4f92e5a6af52c7b01eb8ef7ac /src/script/lua_api/l_client.h | |
parent | ae483f1bd00625216bb0a35370f0cc4568ad7893 (diff) | |
download | minetest-dfa0c15ce045705f05487d623dc7beca6c945b4b.tar.gz minetest-dfa0c15ce045705f05487d623dc7beca6c945b4b.tar.bz2 minetest-dfa0c15ce045705f05487d623dc7beca6c945b4b.zip |
[CSM] Add function to get the definition of items (#5732)
Add node def and item def documentation.
Please be ready for merge!
Diffstat (limited to 'src/script/lua_api/l_client.h')
-rw-r--r-- | src/script/lua_api/l_client.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/script/lua_api/l_client.h b/src/script/lua_api/l_client.h index 2267a4c9d..9813a5604 100644 --- a/src/script/lua_api/l_client.h +++ b/src/script/lua_api/l_client.h @@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #define L_CLIENT_H_ #include "lua_api/l_base.h" +#include "itemdef.h" +#include "tool.h" class ModApiClient : public ModApiBase { @@ -38,7 +40,7 @@ private: // get_player_names() static int l_get_player_names(lua_State *L); - // show_formspec(name, fornspec) + // show_formspec(name, formspec) static int l_show_formspec(lua_State *L); // send_respawn() @@ -74,6 +76,12 @@ private: // get_server_info() static int l_get_server_info(lua_State *L); + + // get_item_def(itemstring) + static int l_get_item_def(lua_State *L); + + // get_node_def(nodename) + static int l_get_node_def(lua_State *L); static int l_take_screenshot(lua_State *L); |