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
Name
Description

Creates a new Program by merging multiple Programs together.

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

The name of the program.

Properties

The collection of nodes in this program.

Combine(Program[])
ToString()
InitialValues
Name

ToString()

Method in

Nodes
public override string ToString()

Summary

Program

Name

Property in

The name of the program.

Nodes

Property in

The collection of nodes in this program.

public string Name {
      get; set; }

Summary

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

Summary

Program

InitialValues

Property in

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; }

Summary

Program

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

programs

The new, combined program.

The Programs to combine together.

Returns

Yarn.Program[]