Class ScriptVariables
- Namespace
- LunyScript /
- Assembly
- LunyScript.dll
Provides access to the script's Variable instances stored in a Table. Getter returns a VariableBlock for use in script expressions and conditions. Setter performs immediate variable assignment during Build().
public sealed class ScriptVariables
Expand Details ...
- Inheritance
-
ObjectScriptVariables
Properties
this[String]
public ScriptVariableBlock this[String name] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
name |
Property Value
Methods
Constant(String, Variable)
public ScriptVariableBlock 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 ScriptVariableBlock 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 ScriptVariableBlock Define(String name, Variable variable)
Parameters
| Type | Name | Description |
|---|---|---|
name |
||
variable |