All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Combine(Program[])

Method in Program

Summary

Creates a new Program by merging multiple Programs together.

public static Program Combine(params Program[] programs)

Remarks

The new program will contain every node from every input program.

Parameters

Name
Description

Returns

The new, combined program.

Yarn.Program[] programs

The Programs to combine together.

Program

Class in Yarn

Inherits from System.Object

Summary

A compiled Yarn program.

public class Program

Methods

Name
Description

Properties

Name
Description

Combine(Program[])

Creates a new Program by merging multiple Programs together.

LineIDsForNode(string)

Identifies and returns a list of all line and option IDs inside the node.

ToString()

InitialValues

The collection of initial values for variables; if a PUSH_VARIABLE instruction is run, and the value is not found in the storage, this value will be used

Name

The name of the program.

Nodes

The collection of nodes in this program.

Name

Property in Program

Summary

The name of the program.

public string Name {
      get; set; }

InitialValues

Property in Program

Summary

The collection of initial values for variables; if a PUSH_VARIABLE instruction is run, and the value is not found in the storage, this value will be used

public pbc::MapField<string, global::Yarn.Operand> InitialValues {
      get; }

ToString()

Method in Program

Summary

public override string ToString()

LineIDsForNode(string)

Method in Program

Summary

Identifies and returns a list of all line and option IDs inside the node.

public List<string> LineIDsForNode(string nodeName)

Parameters

Name
Description

Returns

The line IDs of all lines and options inside the node, or null if nodeName doesn't exist in the program.

Nodes

Property in

Summary

The collection of nodes in this program.

string nodeName

The name of the node whos line IDs you covet.

public pbc::MapField<string, global::Yarn.Node> Nodes {
      get; }
Program