All pages
Powered by GitBook
1 of 6

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

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.

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.

ToString()

Method in Program

Summary

public override string ToString()

Nodes

Property in

Summary

The collection of nodes in this program.

Combine(Program[])

Method in

Summary

Creates a new Program by merging multiple Programs together.

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

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

Parameters

Name
Description

programs

The Programs to combine together.

Returns

The new, combined program.

public static Program Combine(params Program[] programs)
Program

InitialValues

Property in

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

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

Name

Property in Program

Summary

The name of the program.

public string Name {
      get; set; }