The ScriptArgumentGeneric<T> needs just a bit of Lua specific functionality so we add push/pop for the LuaScript to call. More...
#include <lua51scriptargument.h>
Public Member Functions | |
virtual | ~LuaArgument () |
Virtual deconstructor. | |
virtual LuaArgument * | GetMostDerived () |
Get a pointer to the most Derived type of this class. More... | |
virtual void | Pop (lua_State *TargetState)=0 |
Handle the details of pulling data from Lua's Stack into this. More... | |
virtual void | Push (lua_State *TargetState) const =0 |
Handle the details of putting this data onto Lua's Stack. More... | |
The ScriptArgumentGeneric<T> needs just a bit of Lua specific functionality so we add push/pop for the LuaScript to call.
Definition at line 77 of file lua51scriptargument.h.
|
inlinevirtual |
Get a pointer to the most Derived type of this class.
Reimplemented in Mezzanine::Scripting::Lua::Lua51NilArgument, Mezzanine::Scripting::Lua::Lua51BoolArgument, Mezzanine::Scripting::Lua::Lua51StringArgument, Mezzanine::Scripting::Lua::Lua51WholeArgument, Mezzanine::Scripting::Lua::Lua51RealArgument, and Mezzanine::Scripting::Lua::Lua51IntegerArgument.
Definition at line 95 of file lua51scriptargument.h.
|
pure virtual |
Handle the details of pulling data from Lua's Stack into this.
TargetState | The state with the stack to pull the data from. |
Implemented in Mezzanine::Scripting::Lua::Lua51NilArgument, Mezzanine::Scripting::Lua::Lua51BoolArgument, Mezzanine::Scripting::Lua::Lua51StringArgument, Mezzanine::Scripting::Lua::Lua51WholeArgument, Mezzanine::Scripting::Lua::Lua51RealArgument, and Mezzanine::Scripting::Lua::Lua51IntegerArgument.
|
pure virtual |
Handle the details of putting this data onto Lua's Stack.
TargetState | The state with the stack to push the data onto. |
Implemented in Mezzanine::Scripting::Lua::Lua51NilArgument, Mezzanine::Scripting::Lua::Lua51BoolArgument, Mezzanine::Scripting::Lua::Lua51StringArgument, Mezzanine::Scripting::Lua::Lua51WholeArgument, Mezzanine::Scripting::Lua::Lua51RealArgument, and Mezzanine::Scripting::Lua::Lua51IntegerArgument.