Yarn Namespace

Summary

Contains classes for working with compiled Yarn programs.

Classes

NameDescription
ConstantTypePropertyRepresents a property that belongs to a type and contains a read-only value.
DialogueCo-ordinates the execution of Yarn programs.
DialogueExceptionAn exception that is thrown by Dialogue when there is an error in executing a Program .
EnumBaseThe base type for all enumeration types.
EnumTypeA type that represents enumerations.
FunctionTypeA type that represents a function.
Header
LibraryA collection of functions that can be called from Yarn programs.
MemoryVariableStoreA simple concrete implementation of IVariableStorage that keeps all variables in memory.
NodeA node of Yarn script, contained within a Program , and containing Yarn.Instruction s.
ProgramA compiled Yarn program.
TypeBaseProvides the base class for all concrete types.
TypesContains the built-in types available in the Yarn language.

Delegates

NameDescription
CommandHandlerRepresents the method that is called when the Dialogue delivers a Command .
DialogueCompleteHandlerRepresents the method that is called when the dialogue has reached its end, and no more code remains to be run.
LineHandlerRepresents the method that is called when the Dialogue delivers a Line .
LoggerRepresents a method that receives diagnostic messages and error information from a Dialogue .
NodeCompleteHandlerRepresents the method that is called when the Dialogue reaches the end of a node.
NodeStartHandlerRepresents the method that is called when the Dialogue begins executing a node.
OptionsHandlerRepresents the method that is called when the Dialogue delivers an OptionSet .
PrepareForLinesHandlerRepresents the method that is called when the dialogue anticipates that it will deliver lines.

Enums

NameDescription
VariableKindRepresents different kinds of variables that can be fetched from a Dialogue using TryGetValue<T>(string,T?) .

Interfaces

NameDescription
IMarkupParserContains methods for parsing raw text into a MarkupParseResult .
ISmartVariableEvaluatorContains methods for evaluating the value of smart variables
ITypeDefines properties that describe a type in the Yarn language.
ITypeMemberProvides properties used to work with members of a type.
IVariableAccessProvides a mechanism for retrieving values.
IVariableStorageProvides a mechanism for storing values.
IYarnValueRepresents a read-only value in the Yarn Spinner virtual machine.

Namespaces

NameDescription
Yarn.CompilerContains classes for compiling Yarn code.
Yarn.MarkupContains classes for working with markup in Yarn lines.
Yarn.SaliencyContains classes for choosing the most relevant content out of a set of possible options.
Yarn.UnityContains classes for working with Yarn Spinner in the Unity game engine.
Yarn.UtilityContains utility classes used by Yarn Spinner.

Structs

NameDescription
CommandA command, sent from the Dialogue to the game.
LineA line of dialogue, sent from the Dialogue to the game.
OptionSetA set of Option s, sent from the Dialogue to the game.