#include <l_localplayer.h>
|
static void | create (lua_State *L, LocalPlayer *m) |
|
static void | Register (lua_State *L) |
|
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) |
|
static void | registerClass (lua_State *L, const char *name, 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 const char | className [] = "LocalPlayer" |
|
|
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.
|
|
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.
|
|
◆ LuaLocalPlayer()
◆ ~LuaLocalPlayer()
LuaLocalPlayer::~LuaLocalPlayer |
( |
| ) |
|
|
default |
◆ create()
void LuaLocalPlayer::create |
( |
lua_State * | L, |
|
|
LocalPlayer * | m ) |
|
static |
◆ gc_object()
int LuaLocalPlayer::gc_object |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ getobject() [1/2]
LocalPlayer * LuaLocalPlayer::getobject |
( |
lua_State * | L, |
|
|
int | narg ) |
|
staticprivate |
◆ getobject() [2/2]
References m_localplayer.
Referenced by getobject(), l_get_armor_groups(), l_get_breath(), l_get_control(), l_get_hp(), l_get_last_look_horizontal(), l_get_last_look_vertical(), l_get_last_pos(), l_get_last_velocity(), l_get_move_resistance(), l_get_movement(), l_get_movement_acceleration(), l_get_movement_speed(), l_get_name(), l_get_physics_override(), l_get_pos(), l_get_velocity(), l_get_wield_index(), l_get_wielded_item(), l_hud_add(), l_hud_change(), l_hud_get(), l_hud_get_all(), l_hud_remove(), l_is_attached(), l_is_climbing(), l_is_in_liquid(), l_is_in_liquid_stable(), l_is_touching_ground(), and l_swimming_vertical().
◆ l_get_armor_groups()
int LuaLocalPlayer::l_get_armor_groups |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_breath()
int LuaLocalPlayer::l_get_breath |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_control()
int LuaLocalPlayer::l_get_control |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_hp()
int LuaLocalPlayer::l_get_hp |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_last_look_horizontal()
int LuaLocalPlayer::l_get_last_look_horizontal |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_last_look_vertical()
int LuaLocalPlayer::l_get_last_look_vertical |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_last_pos()
int LuaLocalPlayer::l_get_last_pos |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_last_velocity()
int LuaLocalPlayer::l_get_last_velocity |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_move_resistance()
int LuaLocalPlayer::l_get_move_resistance |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_movement()
int LuaLocalPlayer::l_get_movement |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_movement_acceleration()
int LuaLocalPlayer::l_get_movement_acceleration |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_movement_speed()
int LuaLocalPlayer::l_get_movement_speed |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_name()
int LuaLocalPlayer::l_get_name |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_override_pos()
static int LuaLocalPlayer::l_get_override_pos |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_physics_override()
int LuaLocalPlayer::l_get_physics_override |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_pos()
int LuaLocalPlayer::l_get_pos |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_velocity()
int LuaLocalPlayer::l_get_velocity |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_wield_index()
int LuaLocalPlayer::l_get_wield_index |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_get_wielded_item()
int LuaLocalPlayer::l_get_wielded_item |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_hud_add()
int LuaLocalPlayer::l_hud_add |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_hud_change()
int LuaLocalPlayer::l_hud_change |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_hud_get()
int LuaLocalPlayer::l_hud_get |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_hud_get_all()
int LuaLocalPlayer::l_hud_get_all |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_hud_remove()
int LuaLocalPlayer::l_hud_remove |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_is_attached()
int LuaLocalPlayer::l_is_attached |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_is_climbing()
int LuaLocalPlayer::l_is_climbing |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_is_in_liquid()
int LuaLocalPlayer::l_is_in_liquid |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_is_in_liquid_stable()
int LuaLocalPlayer::l_is_in_liquid_stable |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_is_touching_ground()
int LuaLocalPlayer::l_is_touching_ground |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ l_swimming_vertical()
int LuaLocalPlayer::l_swimming_vertical |
( |
lua_State * | L | ) |
|
|
staticprivate |
◆ Register()
void LuaLocalPlayer::Register |
( |
lua_State * | L | ) |
|
|
static |
◆ className
const char LuaLocalPlayer::className = "LocalPlayer" |
|
static |
◆ m_localplayer
◆ methods
const luaL_Reg LuaLocalPlayer::methods |
|
staticprivate |
The documentation for this class was generated from the following files: