LPCGame
A Simple 2d Game Engine
|
#include <luacudataparam.h>
Inherits LuaC::LuaParam.
Public Member Functions | |
LuaUdataParam (T *obj) | |
void | Push (lua_State *l) override |
void | Push (lua_State *l, std::string name) override |
Static Public Member Functions | |
static T * | Retrieve (lua_State *l) |
A class for packing together one of our classes and its Lua lib Push function so that we can easily push it onto a Lua state and use it as a parameter
|
inline |
Construct the parameter, giving it a pointer to the object it's pushing
obj | The object to be pushed into the state |
|
inlineoverridevirtual |
Push the parameter value on to a Lua state using the pusher function
l | The Lua state to push the object onto |
Implements LuaC::LuaParam.
|
inlineoverridevirtual |
Push the parameter onto a Lua state as a global variable with some name
l | Lua state to push onto |
name | Global name to be given to the object |
Implements LuaC::LuaParam.
|
inlinestatic |
Get the Lua Param from the top of the Lua Stack Used for retrieving the return value of a Lua function call
l | Lua state to get result from |