MemoryVariableStore
Class in Yarn
Inherits from System.Object
Summary
A simple concrete implementation of IVariableStorage that keeps all variables in memory.
public class MemoryVariableStore : IVariableStorageMethods
| Name | Description |
|---|---|
| Clear() | Removes all variables from storage. |
| GetVariableKind(string) | Gets the kind of variable named name . |
| SetValue(string,bool) | Stores a bool in this VariableStorage. |
| SetValue(string,float) | Stores a float in this VariableStorage. |
| SetValue(string,string) | Stores a string in this VariableStorage. |
| TryGetValue | Given a variable name, attempts to fetch a value for the variable, either from storage, initial values found in Program , or by evaluating a smart variable found in Program . |
Properties
| Name | Description |
|---|---|
| Program | Gets or sets the Yarn Program that stores information about the initial values of variables, and is able to produce values for smart variables. |
| SmartVariableEvaluator | Gets or sets the object to use when evaluating smart variables. |