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. 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...
 

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)

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: