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. More... | |
Public Attributes | |
Language.Lua.LuaTable | luaTable = null |
The LuaInterpreter Lua table. More... | |
Properties | |
bool | IsValid [get] |
Indicates whether the wrapper points to a valid Lua table. More... | |
int? | Count [get] |
Gets the number of elements in the table. More... | |
IEnumerable< string > | Keys [get] |
Gets the keys as strings. More... | |
IEnumerable< object >?? | Values [get] |
Gets the values. More... | |
object | this[string key] [get] |
Gets the value with the specified string key. More... | |
object | this[int key] [get] |
Gets the value with the specified int key. More... | |
This is a Lua table wrapper for LuaInterpreter.
It isolates the underlying LuaInterpreter implementation from the rest of the Dialogue System.
PixelCrushers.DialogueSystem.LuaTableWrapper.LuaTableWrapper | ( | LuaTable | luaTable | ) |
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 |