Library

Class in Yarn

Inherits from System.Object

Summary

A collection of functions that can be called from Yarn programs.

public class Library

Remarks

You do not create instances of this class yourself. The Dialogue class creates one of its own, which you can access via the Library property.

Methods

NameDescription

Removes a function from the Library.

Gets a value indicating whether this Library contains a function named name .

Generates a unique tracking variable name. This is intended to be used to generate names for visting. Ideally these will very reproduceable and sensible. For now it will be something terrible and easy.

Returns a System.Delegate with a given name.

Loads functions from another Library .

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

Registers a new function that returns a value, which can be called from a Yarn program.

See Also

  • Dialogue: Co-ordinates the execution of Yarn programs.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.