PixelCrushers.DialogueSystem.LuaTableWrapper Class Reference

This is a Lua table wrapper for LuaInterpreter. More...

Collaboration diagram for PixelCrushers.DialogueSystem.LuaTableWrapper:

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.
 

Detailed Description

This is a Lua table wrapper for LuaInterpreter.

It isolates the underlying LuaInterpreter implementation from the rest of the Dialogue System.

Constructor & Destructor Documentation

◆ LuaTableWrapper()

PixelCrushers.DialogueSystem.LuaTableWrapper.LuaTableWrapper ( LuaTable  luaTable)
inline

Initializes a new instance of the PixelCrushers.DialogueSystem.LuaTableWrapper class.

Parameters
luaTableLua table.

Member Data Documentation

◆ luaTable

Language.Lua.LuaTable PixelCrushers.DialogueSystem.LuaTableWrapper.luaTable = null

The LuaInterpreter Lua table.

Property Documentation

◆ count

int PixelCrushers.DialogueSystem.LuaTableWrapper.count
get

Gets the number of elements in the table.

The count.

◆ isValid

bool PixelCrushers.DialogueSystem.LuaTableWrapper.isValid
get

Indicates whether the wrapper points to a valid Lua table.

true if this instance is valid; otherwise, false.

◆ keys

IEnumerable<string> PixelCrushers.DialogueSystem.LuaTableWrapper.keys
get

Gets the keys as strings.If the table is a one-dimensional array, this returns the indices as strings.

The keys.

◆ this[int key]

object PixelCrushers.DialogueSystem.LuaTableWrapper.this[int key]
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.

Parameters
keyKey.

◆ this[string key]

object PixelCrushers.DialogueSystem.LuaTableWrapper.this[string 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.

Parameters
keyKey.

◆ values

IEnumerable<object> PixelCrushers.DialogueSystem.LuaTableWrapper.values
get

Gets the values.

If a value is a table, this returns a LuaTableWrapper around it.

The values.


The documentation for this class was generated from the following file: