1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-16 18:01:40 +00:00

[CSM] Add function to get the definition of items (#5732)

Add node def and item def documentation.

Please be ready for merge!
This commit is contained in:
bigfoot547 2017-05-21 07:40:55 -05:00 committed by Loïc Blot
parent ae483f1bd0
commit dfa0c15ce0
5 changed files with 425 additions and 3 deletions

View file

@ -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);