]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_server.h
Attachments: Fix interpolation from (0,0,0) after detach
[dragonfireclient.git] / src / script / lua_api / l_server.h
index 0d0aa45c8d0d6ee1697dc1e2bc501f7c804b7b6e..3aa1785a248295bed8c81dc544f57c8a21701caa 100644 (file)
@@ -17,19 +17,22 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef L_SERVER_H_
-#define L_SERVER_H_
+#pragma once
 
 #include "lua_api/l_base.h"
 
-class ModApiServer : public ModApiBase {
+class ModApiServer : public ModApiBase
+{
 private:
-       // request_shutdown()
+       // request_shutdown([message], [reconnect])
        static int l_request_shutdown(lua_State *L);
 
        // get_server_status()
        static int l_get_server_status(lua_State *L);
 
+       // get_server_uptime()
+       static int l_get_server_uptime(lua_State *L);
+
        // get_worldpath()
        static int l_get_worldpath(lua_State *L);
 
@@ -46,6 +49,9 @@ class ModApiServer : public ModApiBase {
        // the returned list is sorted alphabetically for you
        static int l_get_modnames(lua_State *L);
 
+       // print(text)
+       static int l_print(lua_State *L);
+
        // chat_send_all(text)
        static int l_chat_send_all(lua_State *L);
 
@@ -61,12 +67,18 @@ class ModApiServer : public ModApiBase {
        // sound_stop(handle)
        static int l_sound_stop(lua_State *L);
 
+       // sound_fade(handle, step, gain)
+       static int l_sound_fade(lua_State *L);
+
        // get_player_privs(name, text)
        static int l_get_player_privs(lua_State *L);
 
        // get_player_ip()
        static int l_get_player_ip(lua_State *L);
 
+       // get_player_information(name)
+       static int l_get_player_information(lua_State *L);
+
        // get_ban_list()
        static int l_get_ban_list(lua_State *L);
 
@@ -82,12 +94,18 @@ class ModApiServer : public ModApiBase {
        // kick_player(name, [message]) -> success
        static int l_kick_player(lua_State *L);
 
+       // remove_player(name)
+       static int l_remove_player(lua_State *L);
+
        // notify_authentication_modified(name)
        static int l_notify_authentication_modified(lua_State *L);
 
+       // get_last_run_mod()
+       static int l_get_last_run_mod(lua_State *L);
+
+       // set_last_run_mod(modname)
+       static int l_set_last_run_mod(lua_State *L);
+
 public:
        static void Initialize(lua_State *L, int top);
-
 };
-
-#endif /* L_SERVER_H_ */