]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_minimap.h
CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"
[dragonfireclient.git] / src / script / lua_api / l_minimap.h
index d9bb8842cfed0fc744ac66174f48708c2a7f44b5..d4fbf6330c363680b2f2448d318b6c1e1fd84368 100644 (file)
@@ -22,14 +22,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "l_base.h"
 
-
 class Minimap;
 
-class LuaMinimap : public ModApiBase {
+class LuaMinimap : public ModApiBase
+{
 private:
-
        static const char className[];
-       static const luaL_reg methods[];
+       static const luaL_Reg methods[];
 
        // garbage collector
        static int gc_object(lua_State *L);
@@ -46,9 +45,11 @@ class LuaMinimap : public ModApiBase {
        static int l_show(lua_State *L);
        static int l_hide(lua_State *L);
 
-       static int l_toggle_shape(lua_State *L);
+       static int l_set_shape(lua_State *L);
+       static int l_get_shape(lua_State *L);
+
+       Minimap *m_minimap = nullptr;
 
-       Minimap *m_minimap;
 public:
        LuaMinimap(Minimap *m);
        ~LuaMinimap() {}
@@ -56,7 +57,7 @@ class LuaMinimap : public ModApiBase {
        static void create(lua_State *L, Minimap *object);
 
        static LuaMinimap *checkobject(lua_State *L, int narg);
-       static Minimapgetobject(LuaMinimap *ref);
+       static Minimap *getobject(LuaMinimap *ref);
 
        static void Register(lua_State *L);
 };