IVariableAccess

Interface in Yarn

Summary

Provides a mechanism for retrieving values.

public interface IVariableAccess

Methods

NameDescription
GetVariableKind(string)Gets the kind of variable named name .
TryGetValue(string,T?)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

NameDescription
ProgramGets or sets the Yarn Program that stores information about the initial values of variables, and is able to produce values for smart variables.
SmartVariableEvaluatorGets or sets the object to use when evaluating smart variables.