Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ElunaTemplate< T > Class Template Reference

#include <LuaEngine.h>

Static Public Member Functions

static T * check (lua_State *L, int narg)
static int gcT (lua_State *L)
static int index (lua_State *L)
static int push (lua_State *L, T const *obj, bool gc=false)
static void Register (lua_State *L)
static int thunk (lua_State *L)
static void tostring (char *buff, void const *obj)
static int tostringT (lua_State *L)
static int type (lua_State *L)

Detailed Description

template<typename T>
class ElunaTemplate< T >

Definition at line 35 of file LuaEngine.h.

Member Function Documentation

◆ check()

template<typename T>
T * ElunaTemplate< T >::check ( lua_State * L,
int narg )
inlinestatic

◆ gcT()

template<typename T>
int ElunaTemplate< T >::gcT ( lua_State * L)
inlinestatic

Definition at line 134 of file LuaEngine.h.

References check(), and tostring().

Referenced by Register().

◆ index()

template<typename T>
int ElunaTemplate< T >::index ( lua_State * L)
inlinestatic

Definition at line 164 of file LuaEngine.h.

References GetTName().

◆ push()

template<typename T>
int ElunaTemplate< T >::push ( lua_State * L,
T const * obj,
bool gc = false )
inlinestatic

Definition at line 76 of file LuaEngine.h.

References GetTName(), and tostring().

Referenced by Eluna::Push(), Eluna::Push(), Eluna::Push(), and Eluna::Push().

◆ Register()

template<typename T>
void ElunaTemplate< T >::Register ( lua_State * L)
inlinestatic

Definition at line 44 of file LuaEngine.h.

References gcT(), GetTName(), and tostringT().

Referenced by RegisterFunctions().

◆ thunk()

template<typename T>
int ElunaTemplate< T >::thunk ( lua_State * L)
inlinestatic

Definition at line 124 of file LuaEngine.h.

References check(), and ElunaRegister< T >::mfunc.

Referenced by SetMethods().

◆ tostring()

template<typename T>
void ElunaTemplate< T >::tostring ( char * buff,
void const * obj )
inlinestatic

Definition at line 159 of file LuaEngine.h.

Referenced by gcT(), and push().

◆ tostringT()

template<typename T>
int ElunaTemplate< T >::tostringT ( lua_State * L)
inlinestatic

Definition at line 149 of file LuaEngine.h.

References GetTName().

Referenced by Register().

◆ type()

template<typename T>
int ElunaTemplate< T >::type ( lua_State * L)
inlinestatic

Definition at line 38 of file LuaEngine.h.

References GetTName().

Referenced by SetMethods().


The documentation for this class was generated from the following file: