Language.Lua.LuaTable Class Reference
Inheritance diagram for Language.Lua.LuaTable:
Collaboration diagram for Language.Lua.LuaTable:

Public Member Functions

 LuaTable ()
 
 LuaTable (LuaTable parent)
 
override string GetTypeCode ()
 
override string ToString ()
 
void AddRaw (string key, LuaValue value)
 
void AddRaw (int key, LuaValue value)
 
bool ContainsKey (LuaValue key)
 
void AddValue (LuaValue value)
 
void InsertValue (int index, LuaValue value)
 
bool Remove (LuaValue item)
 
void RemoveAt (int index)
 
void Sort ()
 
void Sort (LuaFunction compare)
 
LuaValue GetValue (int index)
 
LuaValue GetValue (string name)
 
LuaValue GetKey (string key)
 
void SetNameValue (string name, LuaValue value)
 
void SetKeyValue (LuaValue key, LuaValue value)
 
LuaValue GetValue (LuaValue key)
 
LuaFunction Register (string name, LuaFunc function)
 
LuaFunction RegisterMethodFunction (string name, object target, System.Reflection.MethodInfo methodInfo)
 [PixelCrushers] Registers a C# method by its MethodInfo.
 
LuaValue RawGetValue (LuaValue key)
 
void RawSetValue (string name, LuaValue value)
 
- Public Member Functions inherited from Language.Lua.LuaValue
string GetTypeCode ()
 
virtual bool GetBooleanValue ()
 
bool Equals (LuaValue other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Properties

LuaTable MetaTable [get, set]
 
override object Value [get]
 
int Length [get]
 
int Count [get]
 
List< LuaValueList [get]
 
Dictionary< LuaValue, LuaValueDict [get]
 
IEnumerable< LuaValueListValues [get]
 
IEnumerable< LuaValueKeys [get]
 
IEnumerable< KeyValuePair< LuaValue, LuaValue > > KeyValuePairs [get]
 
- Properties inherited from Language.Lua.LuaValue
object Value [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Language.Lua.LuaValue
static LuaValue GetKeyValue (LuaValue baseValue, LuaValue key)
 

Constructor & Destructor Documentation

◆ LuaTable() [1/2]

Language.Lua.LuaTable.LuaTable ( )
inline

◆ LuaTable() [2/2]

Language.Lua.LuaTable.LuaTable ( LuaTable  parent)
inline

Member Function Documentation

◆ AddRaw() [1/2]

void Language.Lua.LuaTable.AddRaw ( int  key,
LuaValue  value 
)
inline

◆ AddRaw() [2/2]

void Language.Lua.LuaTable.AddRaw ( string  key,
LuaValue  value 
)
inline

◆ AddValue()

void Language.Lua.LuaTable.AddValue ( LuaValue  value)
inline

◆ ContainsKey()

bool Language.Lua.LuaTable.ContainsKey ( LuaValue  key)
inline

◆ GetKey()

LuaValue Language.Lua.LuaTable.GetKey ( string  key)
inline

◆ GetTypeCode()

override string Language.Lua.LuaTable.GetTypeCode ( )
inline

◆ GetValue() [1/3]

LuaValue Language.Lua.LuaTable.GetValue ( int  index)
inline

◆ GetValue() [2/3]

LuaValue Language.Lua.LuaTable.GetValue ( LuaValue  key)
inline

◆ GetValue() [3/3]

LuaValue Language.Lua.LuaTable.GetValue ( string  name)
inline

◆ InsertValue()

void Language.Lua.LuaTable.InsertValue ( int  index,
LuaValue  value 
)
inline

◆ RawGetValue()

LuaValue Language.Lua.LuaTable.RawGetValue ( LuaValue  key)
inline

◆ RawSetValue()

void Language.Lua.LuaTable.RawSetValue ( string  name,
LuaValue  value 
)
inline

◆ Register()

LuaFunction Language.Lua.LuaTable.Register ( string  name,
LuaFunc  function 
)
inline

◆ RegisterMethodFunction()

LuaFunction Language.Lua.LuaTable.RegisterMethodFunction ( string  name,
object  target,
System::Reflection::MethodInfo  methodInfo 
)
inline

[PixelCrushers] Registers a C# method by its MethodInfo.

Returns
The Lua function instance wrapping the method.
Parameters
nameName of the function in Lua.
targetTarget object containing the method (or null).
methodInfoMethod info.

◆ Remove()

bool Language.Lua.LuaTable.Remove ( LuaValue  item)
inline

◆ RemoveAt()

void Language.Lua.LuaTable.RemoveAt ( int  index)
inline

◆ SetKeyValue()

void Language.Lua.LuaTable.SetKeyValue ( LuaValue  key,
LuaValue  value 
)
inline

◆ SetNameValue()

void Language.Lua.LuaTable.SetNameValue ( string  name,
LuaValue  value 
)
inline

◆ Sort() [1/2]

void Language.Lua.LuaTable.Sort ( )
inline

◆ Sort() [2/2]

void Language.Lua.LuaTable.Sort ( LuaFunction  compare)
inline

◆ ToString()

override string Language.Lua.LuaTable.ToString ( )
inline

Property Documentation

◆ Count

int Language.Lua.LuaTable.Count
get

◆ Dict

Dictionary<LuaValue, LuaValue> Language.Lua.LuaTable.Dict
get

◆ Keys

IEnumerable<LuaValue> Language.Lua.LuaTable.Keys
get

◆ KeyValuePairs

IEnumerable<KeyValuePair<LuaValue, LuaValue> > Language.Lua.LuaTable.KeyValuePairs
get

◆ Length

int Language.Lua.LuaTable.Length
get

◆ List

List<LuaValue> Language.Lua.LuaTable.List
get

◆ ListValues

IEnumerable<LuaValue> Language.Lua.LuaTable.ListValues
get

◆ MetaTable

LuaTable Language.Lua.LuaTable.MetaTable
getset

◆ Value

override object Language.Lua.LuaTable.Value
get

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