Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
l_client.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4// Copyright (C) 2017 nerzhul, Loic Blot <loic.blot@unix-experience.fr>
5
6#pragma once
7
8#include "lua_api/l_base.h"
9#include "itemdef.h"
10#include "tool.h"
11
13{
14private:
15 // get_current_modname()
16 static int l_get_current_modname(lua_State *L);
17
18 // get_modpath(modname)
19 static int l_get_modpath(lua_State *L);
20
21 // print(text)
22 static int l_print(lua_State *L);
23
24 // display_chat_message(message)
25 static int l_display_chat_message(lua_State *L);
26
27 // send_chat_message(message)
28 static int l_send_chat_message(lua_State *L);
29
30 // clear_out_chat_queue()
31 static int l_clear_out_chat_queue(lua_State *L);
32
33 // get_player_names()
34 static int l_get_player_names(lua_State *L);
35
36 // show_formspec(name, formspec)
37 static int l_show_formspec(lua_State *L);
38
39 // disconnect()
40 static int l_disconnect(lua_State *L);
41
42 // gettext(text)
43 static int l_gettext(lua_State *L);
44
45 // get_node(pos)
46 static int l_get_node_or_nil(lua_State *L);
47
48 // get_language()
49 static int l_get_language(lua_State *L);
50
51 // get_wielded_item()
52 static int l_get_wielded_item(lua_State *L);
53
54 // get_meta(pos)
55 static int l_get_meta(lua_State *L);
56
57 // get_server_info()
58 static int l_get_server_info(lua_State *L);
59
60 // get_item_def(itemstring)
61 static int l_get_item_def(lua_State *L);
62
63 // get_node_def(nodename)
64 static int l_get_node_def(lua_State *L);
65
66 // get_privilege_list()
67 static int l_get_privilege_list(lua_State *L);
68
69 // get_builtin_path()
70 static int l_get_builtin_path(lua_State *L);
71
72 // get_csm_restrictions()
73 static int l_get_csm_restrictions(lua_State *L);
74
75public:
76 static void Initialize(lua_State *L, int top);
77};
Definition l_base.h:28
Definition l_client.h:13
static void Initialize(lua_State *L, int top)
Definition l_client.cpp:319
static int l_get_server_info(lua_State *L)
Definition l_client.cpp:221
static int l_disconnect(lua_State *L)
Definition l_client.cpp:146
static int l_get_node_def(lua_State *L)
Definition l_client.cpp:263
static int l_get_privilege_list(lua_State *L)
Definition l_client.cpp:288
static int l_get_builtin_path(lua_State *L)
Definition l_client.cpp:300
static int l_get_modpath(lua_State *L)
Definition l_client.cpp:59
static int l_get_language(lua_State *L)
Definition l_client.cpp:188
static int l_show_formspec(lua_State *L)
Definition l_client.cpp:131
static int l_clear_out_chat_queue(lua_State *L)
Definition l_client.cpp:106
static int l_get_wielded_item(lua_State *L)
static int l_get_item_def(lua_State *L)
Definition l_client.cpp:238
static int l_get_meta(lua_State *L)
Definition l_client.cpp:205
static int l_print(lua_State *L)
Definition l_client.cpp:69
static int l_get_csm_restrictions(lua_State *L)
Definition l_client.cpp:307
static int l_display_chat_message(lua_State *L)
Definition l_client.cpp:78
static int l_get_current_modname(lua_State *L)
Definition l_client.cpp:48
static int l_get_player_names(lua_State *L)
Definition l_client.cpp:113
static int l_send_chat_message(lua_State *L)
Definition l_client.cpp:90
static int l_get_node_or_nil(lua_State *L)
Definition l_client.cpp:170
static int l_gettext(lua_State *L)
Definition l_client.cpp:160