LPCGame
A Simple 2d Game Engine
|
#include <luacparam.h>
Inherited by LuaC::LuaPrimitiveParam< T >, and LuaC::LuaUdataParam< T >.
Public Member Functions | |
virtual void | Push (lua_State *l)=0 |
virtual void | Push (lua_State *l, std::string name)=0 |
A class for packing together an object and the appropriate function for pushing it onto the Lua state into a convenient tuple so we can easily do variadic templates for calling from C++ -> Lua with desired arguments We use the child classes LuaUdataParam and LuaPrimitiveParam to actually set it and use this is an abstract base class
|
pure virtual |
Push the parameter value on to a Lua state using the pusher function
l | The Lua state to push the object onto |
Implemented in LuaC::LuaUdataParam< T >, and LuaC::LuaPrimitiveParam< T >.
|
pure virtual |
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 |
Implemented in LuaC::LuaUdataParam< T >, and LuaC::LuaPrimitiveParam< T >.