Table of Contents

Interface ITable

Namespace
Luny
Assembly
Luny.dll

Dictionary-based variable storage..

public interface ITable

Properties

this[string]

Variable this[string key] { get; set; }

Parameters

key string

Property Value

Variable

Methods

DefineConstant(string, Variable)

Table.ScalarVarHandle DefineConstant(string key, Variable value)

Parameters

key string
value Variable

Returns

Table.ScalarVarHandle

DefineVariable(string, Variable)

Table.ScalarVarHandle DefineVariable(string key, Variable value)

Parameters

key string
value Variable

Returns

Table.ScalarVarHandle

GetHandle(string)

Table.ScalarVarHandle GetHandle(string key)

Parameters

key string

Returns

Table.ScalarVarHandle

GetHandle<T>(string)

Table.VarHandle<T> GetHandle<T>(string key)

Parameters

key string

Returns

Table.VarHandle<T>

Type Parameters

T

Get<T>(string)

T Get<T>(string key)

Parameters

key string

Returns

T

Type Parameters

T

Has(string)

bool Has(string key)

Parameters

key string

Returns

bool

Remove(string)

bool Remove(string key)

Parameters

key string

Returns

bool

RemoveAll()

void RemoveAll()

Events

OnVariableChanged

Sent when a variable changes. Caution: The event args instance becomes invalid after the call, it will be re-used by the next event. Copy the values if you want to keep them.

event EventHandler<VariableChangedArgs> OnVariableChanged

Event Type

EventHandler<VariableChangedArgs>