#include <l_minimap.h>
Public Member Functions | |
| LuaMinimap (Minimap *m) | |
| ~LuaMinimap ()=default | |
Static Public Member Functions | |
| static void | create (lua_State *L, Minimap *object) |
| static Minimap * | getobject (LuaMinimap *ref) |
| static void | Register (lua_State *L) |
| Static Public Member Functions inherited from ModApiBase | |
| static ScriptApiBase * | getScriptApiBase (lua_State *L) |
| static Server * | getServer (lua_State *L) |
| static ServerInventoryManager * | getServerInventoryMgr (lua_State *L) |
| static EmergeThread * | getEmergeThread (lua_State *L) |
| static IGameDef * | getGameDef (lua_State *L) |
| static Environment * | getEnv (lua_State *L) |
| static std::string | getCurrentModPath (lua_State *L) |
| template<typename T> | |
| static T * | getScriptApi (lua_State *L) |
| static bool | registerFunction (lua_State *L, const char *name, lua_CFunction func, int top) |
| template<typename T> | |
| static void | registerClass (lua_State *L, const luaL_Reg *methods, const luaL_Reg *metamethods) |
| template<typename T> | |
| static T * | checkObject (lua_State *L, int narg) |
| static int | l_deprecated_function (lua_State *L, const char *good, const char *bad, lua_CFunction func) |
| A wrapper for deprecated functions. | |
Static Public Attributes | |
| static const char | className [] = "Minimap" |
Static Private Member Functions | |
| static int | gc_object (lua_State *L) |
| static int | l_get_pos (lua_State *L) |
| static int | l_set_pos (lua_State *L) |
| static int | l_get_angle (lua_State *L) |
| static int | l_set_angle (lua_State *L) |
| static int | l_get_mode (lua_State *L) |
| static int | l_set_mode (lua_State *L) |
| static int | l_show (lua_State *L) |
| static int | l_hide (lua_State *L) |
| static int | l_set_shape (lua_State *L) |
| static int | l_get_shape (lua_State *L) |
Private Attributes | |
| Minimap * | m_minimap = nullptr |
Static Private Attributes | |
| static const luaL_Reg | methods [] |
Additional Inherited Members | |
| Protected Member Functions inherited from LuaHelper | |
| template<> | |
| bool | readParam (lua_State *L, int index) |
| template<> | |
| s16 | readParam (lua_State *L, int index) |
| template<> | |
| int | readParam (lua_State *L, int index) |
| template<> | |
| float | readParam (lua_State *L, int index) |
| template<> | |
| v2s16 | readParam (lua_State *L, int index) |
| template<> | |
| v2f | readParam (lua_State *L, int index) |
| template<> | |
| v3f | readParam (lua_State *L, int index) |
| template<> | |
| std::string_view | readParam (lua_State *L, int index) |
| template<> | |
| std::string | readParam (lua_State *L, int index) |
| template<> | |
| std::string_view | readParam (lua_State *L, int index) |
| Read a string from Lua state L at index without copying it. | |
| Static Protected Member Functions inherited from LuaHelper | |
| template<typename T> | |
| static T | readParam (lua_State *L, int index) |
| Read a value using a template type T from Lua state L at index. | |
| template<typename T> | |
| static T | readParam (lua_State *L, int index, const T &default_value) |
| Read a value using a template type T from Lua state L at index. | |
| static bool | geti (lua_State *L, int table, int i) |
| Utility for list iteration. | |
| template<typename F> | |
| static void | for_ipairs (lua_State *L, int table, const F &f) |
| Iterate values t[1], t[2], ... of the given table in order. | |
| LuaMinimap::LuaMinimap | ( | Minimap * | m | ) |
References m_minimap.
Referenced by ~LuaMinimap(), create(), gc_object(), getobject(), l_get_angle(), l_get_mode(), l_get_pos(), l_get_shape(), l_hide(), l_set_angle(), l_set_mode(), l_set_pos(), l_set_shape(), and l_show().
|
default |
|
static |
References LuaMinimap(), and className.
Referenced by ClientScripting::on_minimap_ready().
|
staticprivate |
References LuaMinimap().
Referenced by Register().
|
static |
References LuaMinimap(), and m_minimap.
Referenced by l_get_angle(), l_get_mode(), l_get_pos(), l_get_shape(), l_hide(), l_set_angle(), l_set_mode(), l_set_pos(), l_set_shape(), and l_show().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), Minimap::getAngle(), and getobject().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), Minimap::getModeIndex(), and getobject().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), getobject(), Minimap::getPos(), and push_v3s16().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), Minimap::getMinimapShape(), and getobject().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), Minimap::getModeIndex(), getobject(), and Minimap::setModeIndex().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), getobject(), and Minimap::setAngle().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), Minimap::getMaxModeIndex(), getobject(), and Minimap::setModeIndex().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), getobject(), read_v3s16(), and Minimap::setPos().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), getobject(), and Minimap::setMinimapShape().
|
staticprivate |
References LuaMinimap(), ModApiBase::checkObject(), g_settings, Minimap::getMaxModeIndex(), Minimap::getModeIndex(), getobject(), and Minimap::setModeIndex().
|
static |
References gc_object(), methods, and ModApiBase::registerClass().
Referenced by ClientScripting::InitializeModApi().
|
static |
Referenced by create().
|
private |
Referenced by LuaMinimap(), and getobject().
|
staticprivate |
Referenced by Register().