Initializes the value with the type of val
Fetches the given index (idx) from the lua_State (state), and initializes a LuaVar based on its type.
Returns the given type of T.
Assigns the value to this struct and sets the type if needed.
Casts the type to T if possible.
used to implement an interface with tables in Lua.
Pushes the struct's value to the given lua_State.
Returns the type held by this stucture.
Creates a Lua variable of type void.
Implements a Lua variable with all the underlying stuff required for it.