string
variableName
The name to associate with this variable.
bool
boolValue
The boolean value to store.
Class in Yarn
Inherits from System.Object
A simple concrete implementation of IVariableStorage that keeps all variables in memory.
Name | Description |
---|---|
Method in MemoryVariableStore
Retrieves a value of type T
by name.
Name | Description |
---|---|
Name | Description |
---|---|
true
if a value named variableName
of type T
was retrieved; false
otherwise.
Removes all variables from storage.
Stores a bool
in this VariableStorage.
Stores a float
in this VariableStorage.
Stores a string
in this VariableStorage.
Retrieves a value of type T
by name.
string
variableName
The name of the variable to retrieve the value of.
T
result
On return, if this method returned true, contains the retrieved value. If this method returned false, contains the default value of T
(for example, 0
for float
values, null
for strings, and so on.)
T
The type of the variable to retrieve.
| The name to associate with this variable. |
| The string to store. |
Method in MemoryVariableStore
Stores a float
in this VariableStorage.
Name | Description |
---|---|
string
variableName
The name to associate with this variable.
float
floatValue
The number to store.