Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in BasicBlock
Adds a new destination to this block, that points to another block.
Name | Description |
---|---|
Yarn.Compiler.BasicBlock descendant
The new descendant node.
Yarn.Compiler.BasicBlock.Condition condition
The condition under which descendant
will be run.
Property in BasicBlock
Gets the destinations of this block - that is, blocks or nodes that may run immediately after this block.
Destination: A destination represents a BasicBlock or node that may be run, following the execution of a BasicBlock .
Property in BasicBlock
Gets all descendants (that is, destinations, and destinations of those destinations, and so on), recursively.
Cycles are detected and avoided.
Property in BasicBlock
Gets all descendants (that is, destinations, and destinations of those destinations, and so on) that have any player-visible content, recursively.
Cycles are detected and avoided.
Property in BasicBlock
Gets the index of the first instruction of the node that this block is in.
Property in BasicBlock
Get the ancestors of this block - that is, blocks that may run immediately before this block.
Property in BasicBlock
Gets the name of the label that this block begins at, or null if this basic block does not begin at a labelled instruction.
Class in Yarn.Compiler
Inherits from System.Object
A basic block is a run of instructions inside a Node. Basic blocks group instructions up into segments such that execution only ever begins at the start of a block (that is, a program never jumps into the middle of a block), and execution only ever leaves at the end of a block.
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
Method in BasicBlock
Adds a new destination to this block, that points to a node.
Name | Description |
---|---|
Class in BasicBlock
Inherits from PlayerVisibleContentElement
A command that will be executed.
Name | Description |
---|---|
Name | Description |
---|---|
Name | Description |
---|---|
A command that will be executed.
A line of dialogue that should be shown to the player.
A collection of options that should be shown to the player.
An abstract class that represents some content that is shown to the player.
The conditions under which a Destination may be reached at the end of a BasicBlock.
Adds a new destination to this block, that points to a node.
Adds a new destination to this block, that points to another block.
Get the ancestors of this block - that is, blocks that may run immediately before this block.
Gets all descendants (that is, destinations, and destinations of those destinations, and so on), recursively.
Gets all descendants (that is, destinations, and destinations of those destinations, and so on) that have any player-visible content, recursively.
Gets the destinations of this block - that is, blocks or nodes that may run immediately after this block.
Gets the index of the first instruction of the node that this block is in.
Gets the Instructions that form this block.
Gets the name of the label that this block begins at, or null if this basic block does not begin at a labelled instruction.
Gets a descriptive name for the block.
Gets the name of the node that this block is in.
Gets the collection of player-visible content that will be delivered when this block is run.
A destination represents a BasicBlock or node that may be run, following the execution of a BasicBlock .
string
nodeName
The name of the destination node.
Yarn.Compiler.BasicBlock.Condition condition
The condition under which descendant
will be run.
The text of the command.
Enumeration Member in Condition
The Destination is reached because an expression evaluated to true.
Enumeration Member in Condition
The Destination is reached beacuse of an explicit instruction to go to this block.
Property in BasicBlock
Gets the collection of player-visible content that will be delivered when this block is run.
Player-visible content means lines, options and commands. When this block is run, the entire contents of this collection will be displayed to the player, in the same order as they appear in this collection.
If this collection is empty, then the block contains no visible content. This is the case for blocks that only contain logic, and do not contain any lines, options or commands.
To tell the difference between the different kinds of content, use the is
operator to check the type of each item:
Enumeration Member in Condition
The Destination is reached because an expression evaluated to false.
Property in BasicBlock
Gets a descriptive name for the block.
If this block begins at a labelled instruction, the name will be [NodeName].[LabelName]
. Otherwise, it will be [NodeName].[FirstInstructionIndex]
.
The Destination is reached beacuse of an explicit instruction to go to this block. |
The Destination is reached because an expression evaluated to false. |
The Destination is reached because an expression evaluated to true. |
The Destination is reached because the preceding BasicBlock reached the end of its execution, and the Destination's target is the block immediately following. |
The Destination is reached because the player made an in-game choice to go to it. |
The type of a Destination. |
The block that this destination refers to. |
The condition that causes this destination to be reached. |
The name of the node that this destination refers to. |
Gets the Destination's type - whether the destination is a block, or a node. |
Class in BasicBlock
Inherits from PlayerVisibleContentElement
A line of dialogue that should be shown to the player.
Name | Description |
---|---|
The string table ID of the line that will be shown to the player.
Property in Destination
Gets the Destination's type - whether the destination is a block, or a node.
Struct in OptionsElement
Inherits from System.ValueType
Represents a single option that may be presented to the player.
Name | Description |
---|---|
The destination that will be run if this option is selected by the player.
The string table ID that will be shown to the player.
Class in BasicBlock
Inherits from PlayerVisibleContentElement
A collection of options that should be shown to the player.
Name | Description |
---|---|
Name | Description |
---|---|
The collection of options that will be delivered to the player.
Represents a single option that may be presented to the player.
Class in BasicBlock
Inherits from System.Object
An abstract class that represents some content that is shown to the player.
This class is used, rather than the runtime classes Yarn.Line or Yarn.OptionSet, because when the program is being analysed, no values for any substitutions are available. Instead, these classes represent the data that is available offline.