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
-
ObjectVarAccessor
Properties
this[String]
public TableVariableBlock this[String name] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
name |
Property Value
Methods
Constant(String, Variable)
public TableVariableBlock Constant(String name, Variable variable)
Parameters
| Type | Name | Description |
|---|---|---|
name |
||
variable |
Returns
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 |
|---|---|---|
name |
Returns
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 |
|---|---|---|
name |
||
variable |