]> 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 ca5e7b80f1f3ff6d50492f87a755f0aa8eeb34ef..3aa1785a248295bed8c81dc544f57c8a21701caa 100644 (file)
@@ -17,8 +17,7 @@ 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"
 
@@ -68,13 +67,16 @@ 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()
+       // get_player_information(name)
        static int l_get_player_information(lua_State *L);
 
        // get_ban_list()
@@ -92,6 +94,9 @@ 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);
 
@@ -101,13 +106,6 @@ class ModApiServer : public ModApiBase
        // set_last_run_mod(modname)
        static int l_set_last_run_mod(lua_State *L);
 
-#ifndef NDEBUG
-       //  cause_error(type_of_error)
-       static int l_cause_error(lua_State *L);
-#endif
-
 public:
        static void Initialize(lua_State *L, int top);
 };
-
-#endif /* L_SERVER_H_ */