Table of Contents

Class VarAccessor

Namespace
LunyScript.Blocks
/
Assembly
LunyScript.dll

Provides access to script variables. Getter returns a VariableBlock for use in script expressions and conditions. Setter performs immediate variable assignment during Build().

public sealed class VarAccessor
Expand Details ...
Inheritance
Object
VarAccessor

Properties

this[String]

public TableVariableBlock this[String name] { get; set; }

Parameters

Type Name Description
String
name

Property Value

TableVariableBlock

Methods

Constant(String, Variable)

public TableVariableBlock Constant(String name, Variable variable)

Parameters

Type Name Description
String
name
Variable
variable

Returns

TableVariableBlock

Define(String)

Defines (or gets) a variable with the given name and the default value 0.

public TableVariableBlock Define(String name)

Parameters

Type Name Description
String
name

Returns

TableVariableBlock

Define(String, Variable)

Defines (or gets) a variable with the given name and assigns the provided Variable.

public TableVariableBlock Define(String name, Variable variable)

Parameters

Type Name Description
String
name
Variable
variable

Returns

TableVariableBlock