Program
public class ProgramInherits from Google.Protobuf.IMessage`1
Implements Google.Protobuf.IBufferMessage
#Properties
#InitialValues
public pbc::MapField<string, global::Yarn.Operand> InitialValues { get; }Type MapField
#LanguageVersion
public int LanguageVersion { get; set; }Type Int32
#Name
public string Name { get; set; }Type String
#Nodes
public pbc::MapField<string, global::Yarn.Node> Nodes { get; }Type MapField
#Methods
#GetVariableKind(string)
name
represents.public VariableKind GetVariableKind(string name)Parameters
namestringThe name of a variable.
Returns VariableKind: The kind of variable that name
represents.
#LineIDsForNode(string)
public List<string>? LineIDsForNode(string nodeName)Parameters
nodeNamestringThe name of the node whos line IDs you covet.
Returns List: The line IDs of all lines and options inside the node, or
null if nodeName doesn't exist
in the program.
#ToString()
public override string ToString()Returns String
#TryGetInitialValue<T>(string, T)
variableName from this program's collection of initial
values.public bool TryGetInitialValue<T>(string variableName, out T result)Type Parameters
TThe type of variable to retrieve.
Parameters
variableNamestringThe name of the variable to retrieve a value for.resultTOn return, contains the value of the variable, or the default value ofTif not known. Depending on whatTis, this value may benull.
Returns Boolean: true if an initial value for variableName was found; false
otherwise.
Exceptions
System.InvalidOperationExceptionThrown the stored initial value found forvariableNameis not known to this version of Yarn Spinner.System.InvalidCastExceptionThrown when the initial value found forvariableNamecannot be cast or converted toT.
Generated from Yarn Spinner for Unity 3.3.