All pages
Powered by GitBook
1 of 3

Loading...

Loading...

Loading...

Substitutions

Field in Line

Summary

The values that should be inserted into the user-facing text before delivery.

public string[] Substitutions;

Line

Struct in Yarn

Inherits from System.ValueType

Summary

A line of dialogue, sent from the Dialogue to the game.

Remarks

When the game receives a , it should do the following things to prepare the line for presentation to the user.

  1. Use the value in the field to look up the appropriate user-facing text in the string table.

  2. Use to replace all substitutions in the user-facing text.

  3. Use to parse all markup in the line.

You do not create instances of this struct yourself. They are created by the during program execution.

Fields

Name
Description

See Also

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

public struct Line

ID

The string ID for this line.

Substitutions

The values that should be inserted into the user-facing text before delivery.

Line
ID
ExpandSubstitutions(string,IList<string>)
ParseMarkup(string)
Dialogue
Dialogue.LineHandler
LineHandler

ID

Field in Line

Summary

The string ID for this line.

public string ID;