Allow the binding of Lua to various classes.
More...
#include <LuaBinding.h>
|
auto | GetClassName () const -> const std::string &override |
|
auto | GetBaseClassName () const -> const std::string &override |
|
void | Register (lua_State *L) |
|
auto | IsDerivedClass () const -> bool |
|
|
static auto | check (lua_State *L, int narg, bool bIsSelf=false) -> T * |
|
static auto | get (lua_State *L, int narg) -> T * |
|
static void | PushObject (Lua *L, const std::string &sDerivedClassName, T *p) |
|
static void | RegisterTypes (lua_State *L) |
|
static void | ApplyDerivedType (Lua *L, const std::string &sClassname, void *pSelf) |
|
static auto | CheckLuaObjectType (lua_State *L, int narg, std::string const &szType) -> bool |
|
|
static std::string | m_sClassName |
|
static std::string | m_sBaseClassName |
|
|
using | T = Type |
|
using | binding_t = int(T *, lua_State *) |
|
|
void | Register (Lua *L, int iMethods, int iMetatable) override |
|
void | AddMethod (std::string const ®Name, int(*pFunc)(T *p, lua_State *L)) |
|
|
static void | CreateMethodsTable (lua_State *L, const std::string &szName) |
|
static auto | GetPointerFromStack (Lua *L, const std::string &sType, int iArg) -> void * |
|
static auto | Equal (lua_State *L) -> bool |
|
static auto | PushEqual (lua_State *L) -> int |
|
template<typename Type>
class Luna< Type >
Allow the binding of Lua to various classes.
◆ GetBaseClassName()
template<typename Type >
auto Luna< Type >::GetBaseClassName |
( |
| ) |
const -> const std::string& |
|
inlineoverridevirtual |
◆ GetClassName()
template<typename Type >
auto Luna< Type >::GetClassName |
( |
| ) |
const -> const std::string& |
|
inlineoverridevirtual |
◆ Register()
template<typename Type >
void Luna< Type >::Register |
( |
Lua * |
L, |
|
|
int |
iMethods, |
|
|
int |
iMetatable |
|
) |
| |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file:
- /home/runner/work/etterna/etterna/src/Etterna/Models/Lua/LuaBinding.h