Show / Hide Table of Contents

Class LuaExtensions

Containts extension methods related to Lua and Moonscharp.

Inheritance
System.Object
LuaExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class LuaExtensions

Methods

ToTable(IAttributeCollection, Script)

Converts the given attribute collection to a lua table.

Declaration
public static Table ToTable(this IAttributeCollection attributes, Script script)
Parameters
IAttributeCollection attributes

Script script

Returns
Table

TryGetBool(Table, String, out Boolean)

Tries to get a bool for the given key.

Declaration
public static bool TryGetBool(this Table table, string key, out bool value)
Parameters
Table table

System.String key

System.Boolean value

Returns
System.Boolean

TryGetFloat(Table, String, out Single)

Tries to get a number as a float for the given key.

Declaration
public static bool TryGetFloat(this Table table, string key, out float value)
Parameters
Table table

System.String key

System.Single value

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.