Dialogue

Class in Yarn

Inherits from System.Object

Summary

Co-ordinates the execution of Yarn programs.

public class Dialogue : IAttributeMarkerProcessor

Constructors

Name
Description

Initializes a new instance of the Dialogue class.

Fields

Name
Description

The node that execution will start from.

Methods

Name
Description

Loads the nodes from the specified Program , and adds them to the nodes already loaded.

Starts, or continues, execution of the current Program.

Replaces all substitution markers in a text with the given substitution list.

Returns the string ID that contains the original, uncompiled source text for a node.

Returns the tags for the node nodeName .

Gets a value indicating whether a specified node exists in the Program.

Parses a line of text, and produces a MarkupParseResult containing the results.

Prepares the Dialogue that the user intends to start running a node.

Loads all nodes from the provided Program .

Signals to the Dialogue that the user has selected a specified Option .

Immediately stops the Dialogue .

Unloads all nodes from the Dialogue.

Properties

Name
Description

Gets or sets the CommandHandler that is called when a command is to be delivered to the game.

Gets the name of the node that this Dialogue is currently executing.

Gets or sets the DialogueCompleteHandler that is called when the dialogue reaches its end.

Gets a value indicating whether the Dialogue is currently executing Yarn instructions.

Gets or sets the Dialogue 's locale, as an IETF BCP 47 code.

Gets the Library that this Dialogue uses to locate functions.

Gets or sets the LineHandler that is called when a line is ready to be shown to the user.

Invoked when the Dialogue needs to report debugging information.

Invoked when the Dialogue needs to report an error.

Gets or sets the NodeCompleteHandler that is called when a node is complete.

Gets the names of the nodes in the currently loaded Program.

Gets or sets the NodeStartHandler that is called when a node is started.

Gets or sets the OptionsHandler that is called when a set of options are ready to be shown to the user.

Gets or sets the PrepareForLinesHandler that is called when the dialogue anticipates delivering some lines.

Gets or sets the object that provides access to storing and retrieving the values of variables.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.