Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
l_minimap.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2017 Loic Blot <loic.blot@unix-experience.fr>
4
5#pragma once
6
7#include "l_base.h"
8
9class Minimap;
10
11class LuaMinimap : public ModApiBase
12{
13private:
14 static const luaL_Reg methods[];
15
16 // garbage collector
17 static int gc_object(lua_State *L);
18
19 static int l_get_pos(lua_State *L);
20 static int l_set_pos(lua_State *L);
21
22 static int l_get_angle(lua_State *L);
23 static int l_set_angle(lua_State *L);
24
25 static int l_get_mode(lua_State *L);
26 static int l_set_mode(lua_State *L);
27
28 static int l_show(lua_State *L);
29 static int l_hide(lua_State *L);
30
31 static int l_set_shape(lua_State *L);
32 static int l_get_shape(lua_State *L);
33
34 Minimap *m_minimap = nullptr;
35
36public:
38 ~LuaMinimap() = default;
39
40 static void create(lua_State *L, Minimap *object);
41
42 static Minimap *getobject(LuaMinimap *ref);
43
44 static void Register(lua_State *L);
45
46 static const char className[];
47};
Definition l_minimap.h:12
static int l_get_pos(lua_State *L)
Definition l_minimap.cpp:36
~LuaMinimap()=default
static int l_hide(lua_State *L)
Definition l_minimap.cpp:132
static int l_get_mode(lua_State *L)
Definition l_minimap.cpp:72
static int l_show(lua_State *L)
Definition l_minimap.cpp:114
Minimap * m_minimap
Definition l_minimap.h:34
static int l_set_shape(lua_State *L)
Definition l_minimap.cpp:94
static int l_get_shape(lua_State *L)
Definition l_minimap.cpp:105
static int l_get_angle(lua_State *L)
Definition l_minimap.cpp:54
static const char className[]
Definition l_minimap.h:46
static int l_set_pos(lua_State *L)
Definition l_minimap.cpp:45
static int l_set_mode(lua_State *L)
Definition l_minimap.cpp:81
static int l_set_angle(lua_State *L)
Definition l_minimap.cpp:63
static const luaL_Reg methods[]
Definition l_minimap.h:167
static void create(lua_State *L, Minimap *object)
Definition l_minimap.cpp:17
static int gc_object(lua_State *L)
Definition l_minimap.cpp:151
LuaMinimap(Minimap *m)
Definition l_minimap.cpp:13
static Minimap * getobject(LuaMinimap *ref)
Definition l_minimap.cpp:146
Definition minimap.h:101
Definition l_base.h:28