InMemoryVariableStorage
Last updated
Was this helpful?
Last updated
Was this helpful?
Class in
Inherits from
A simple implementation of VariableStorageBehaviour.
This class stores variables in memory, and is erased when the game exits.
This class also has basic serialization and save/load example functions.
You can also enumerate over the variables by using a foreach
loop:
Note that as of v2.0, this class no longer uses Yarn.Value, to enforce static typing of declared variables within the Yarn Program.
Removes all variables from storage.
returns a boolean value representing if the particular variable is inside the variable storage
Retrieves a Yarn.Value
by name.