]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_minimap.h
Merge pull request #10 from corarona/master
[dragonfireclient.git] / src / script / lua_api / l_minimap.h
index 9a299b4fd1def53e969fa2e0fb64f98e69889acc..cc859ad0d83b5463e573296f64976755b7547ed5 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_MINIMAP_H_
-#define L_MINIMAP_H_
+#pragma once
 
 #include "l_base.h"
 
@@ -28,7 +27,7 @@ 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);
@@ -45,13 +44,14 @@ 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;
+       Minimap *m_minimap = nullptr;
 
 public:
        LuaMinimap(Minimap *m);
-       ~LuaMinimap() {}
+       ~LuaMinimap() = default;
 
        static void create(lua_State *L, Minimap *object);
 
@@ -60,5 +60,3 @@ class LuaMinimap : public ModApiBase
 
        static void Register(lua_State *L);
 };
-
-#endif // L_MINIMAP_H_