This is a Lua table wrapper for LuaInterpreter. More...
Public Member Functions | |
LuaTableWrapper (LuaTable luaTable) | |
Initializes a new instance of the PixelCrushers.DialogueSystem.LuaTableWrapper class. | |
Public Attributes | |
Language.Lua.LuaTable | luaTable = null |
The LuaInterpreter Lua table. | |
Properties | |
bool | isValid [get] |
Indicates whether the wrapper points to a valid Lua table. | |
int | count [get] |
Gets the number of elements in the table. | |
IEnumerable< string > | keys [get] |
Gets the keys as strings.If the table is a one-dimensional array, this returns the indices as strings. | |
IEnumerable< object > | values [get] |
Gets the values. | |
object | this[string key] [get] |
Gets the value with the specified string key. | |
object | this[int key] [get] |
Gets the value with the specified int key. | |
This is a Lua table wrapper for LuaInterpreter.
It isolates the underlying LuaInterpreter implementation from the rest of the Dialogue System.
|
inline |
Initializes a new instance of the PixelCrushers.DialogueSystem.LuaTableWrapper class.
luaTable | Lua table. |
Language.Lua.LuaTable PixelCrushers.DialogueSystem.LuaTableWrapper.luaTable = null |
The LuaInterpreter Lua table.
|
get |
Gets the number of elements in the table.
The count.
|
get |
Indicates whether the wrapper points to a valid Lua table.
true
if this instance is valid; otherwise, false
.
|
get |
Gets the keys as strings.If the table is a one-dimensional array, this returns the indices as strings.
The keys.
|
get |
Gets the value with the specified int key.
Returns a standard type such as string
, float
, bool
, or null
. If the value is a table, it returns a LuaTableWrapper around it.
key | Key. |
|
get |
Gets the value with the specified string key.
Returns a standard type such as string
, float
, bool
, or null
. If the value is a table, it returns a LuaTableWrapper around it.
key | Key. |
|
get |
Gets the values.
If a value is a table, this returns a LuaTableWrapper around it.
The values.