All pages
Powered by GitBook
Couldn't generate the PDF for 1084 pages, generation stopped at 100.
Extend with 50 more pages.
1 of 100

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...

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...

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...

C#

Text

Property in Command

Summary

Gets the text of the command.

public string Text { get; private set; }

NodeExists(string)

Method in Dialogue

Summary

Gets a value indicating whether a specified node exists in the Program.

Parameters

Name
Description

string nodeName

The name of the node.

Returns

true if a node named nodeName exists in the Program, false otherwise.

UnloadAll()

Method in Dialogue

Summary

Unloads all nodes from the Dialogue.

public void UnloadAll()

DialogueCompleteHandler

Property in Dialogue

Summary

Gets or sets the DialogueCompleteHandler that is called when the dialogue reaches its end.

public DialogueCompleteHandler? DialogueCompleteHandler { get; set; }

NodeNames

Property in Dialogue

Summary

Gets the names of the nodes in the currently loaded Program.

public IEnumerable<string> NodeNames { get; }

Remarks

If no program is currently loaded, an empty collection is returned.

GetChecksum(byte[])

Method in CRC32

Summary

Computes a CRC32 checksum from the given bytes.

Parameters

Name
Description

byte[] bytes

The bytes to generate a checksum for.

Returns

A CRC32 checksum derived from bytes .

public bool NodeExists(string nodeName)
public static uint GetChecksum(byte[] bytes)

Yarn.Utility Namespace

Summary

Contains utility classes used by Yarn Spinner.

Classes

Name
Description

Provides a method for generating CRC32 hashes of strings.

Dialogue(Yarn.IVariableStorage)

Constructor in Dialogue

Summary

Initializes a new instance of the Dialogue class.

public Dialogue(Yarn.IVariableStorage variableStorage)

Parameters

Name
Description

variableStorage

The that this Dialogue should use.

GetChecksumString(string)

Method in CRC32

Summary

Gets the CRC-32 hash of s as a string containing 8 lowercase hexadecimal characters.

public static string GetChecksumString(string s)

Remarks

This method converts the string to a UTF-8 encoding, and then computes a CRC32 checksum from those bytes.

Parameters

Name
Description

string s

The string containing the checksum.

ConstantTypeProperty

Class in

Inherits from System.Object

Represents a property that belongs to a type and contains a read-only value.

This kind of type member is useful for constant properties, like enum cases.

Name
Description

Description

Property in

Gets a string describing this property.

GetTagsForNode(string)

Method in

Returns the tags for the node nodeName .

The tags for a node are defined by setting the tags header in the node's source code. This header must be a space-separated list.

Name
Description

TryGetSmartVariable<T>(string,T)

Method in

Evaluate the value of a smart variable named name .

Name
Description

Command

Struct in

Inherits from System.ValueType

A command, sent from the to the game.

You do not create instances of this struct yourself. They are created by the during program execution.

Name
Description

CommandHandler

Delegate in

Inherits from System.MulticastDelegate

Represents the method that is called when the Dialogue delivers a .

Name
Description

CRC32

Class in

Inherits from System.Object

Provides a method for generating CRC32 hashes of strings.

Name
Description

GetChecksum(string)

Method in

Computes a CRC32 checksum from the given string.

This method converts the string to a UTF-8 encoding, and then computes a CRC32 checksum from those bytes.

Name
Description

The string to get the checksum of.

Returns

CRC32
Yarn.IVariableStorage
IVariableStorage
public string Description { get; }

Summary

ConstantTypeProperty

The name of the node.

The node's tags, or null if the node is not present in the Program.

This method is obsolete and may be removed from a future version of Yarn Spinner: Use GetHeaderValue(nodeName, "tags"), and split the result by spaces.

Summary

Remarks

Parameters

Dialogue

string nodeName

Returns

On return, contains the returned value of the smart variable, or the default value of T if a smart variable named name could not be found or its value could not be returned as type T .

Name
Description

T

The type of the returned value.

true if the smart variable was evaluated, false otherwise.

string name

The name of the variable.

Summary

Parameters

Dialogue

T result

Type Parameters

Returns

A CRC32 checksum derived from s .

string s

The string to generate a checksum for.

Summary

Remarks

Parameters

Returns

CRC32

ContentSaliencyStrategy

Property in Dialogue

Summary

Gets or sets the content saliency strategy used by this Dialogue .

public Saliency.IContentSaliencyStrategy ContentSaliencyStrategy { get; set; }

Remarks

A content saliency strategy is a class that implements IContentSaliencyStrategy and selects the most appropriate content in a line group, or any other situation where content saliency is relevant.

IsNodeGroup(string)

Method in Dialogue

Summary

Gets a value indicating whether nodeName is the name of a valid node group in the program.

Parameters

Name
Description

string nodeName

The name of the node group to check.

Returns

true if nodeName is the name of a node group; false otherwise.

NodeStartHandler

Property in Dialogue

Summary

Gets or sets the NodeStartHandler that is called when a node is started.

public NodeStartHandler? NodeStartHandler { get; set; }

Description

Property in FunctionType

Summary

Gets a more verbose description of this type.

public string Description { get; set; }

HasSalientContent(string)

Method in Dialogue

Summary

Returns if the node group has any potential nodes to be run based on the current salient selector.

Parameters

Name
Description

string nodeGroup

The name of the node group.

Returns

True if there is any salient content for the requested node group

OptionsHandler

Property in Dialogue

Summary

Gets or sets the OptionsHandler that is called when a set of options are ready to be shown to the user.

public OptionsHandler? OptionsHandler { get; set; }

Remarks

The Options Handler delivers an OptionSet to the game. Before Continue() can be called to resume execution, SetSelectedOption(int) must be called to indicate which Option was selected by the user. If SetSelectedOption(int) is not called, an exception is thrown.

Name

Property in EnumBase

Summary

Gets the name of this type.

public override string Name { get }

LogErrorMessage

Property in Dialogue

Summary

Invoked when the Dialogue needs to report an error.

public Logger? LogErrorMessage { get; set; }

GetHeaders(string)

Method in Dialogue

Summary

Gets the collection of headers present on the node named nodeName .

Parameters

Name
Description

string nodeName

The name of the node to get headers for.

Returns

A collection of key-values pairs, each one representing a header on the node.

LogDebugMessage

Property in Dialogue

Summary

Invoked when the Dialogue needs to report debugging information.

public Logger? LogDebugMessage { get; set; }

ToString()

Method in FunctionType

Summary

public override string ToString();

RawType

Property in EnumType

Summary

Gets the type of this enum's members.

public TypeBase RawType { get }

Name

Property in FunctionType

Summary

Gets the name of this type.

public string Name { get; }

IsActive

Property in Dialogue

Summary

Gets a value indicating whether the Dialogue is currently executing Yarn instructions.

public bool IsActive { get }

EnumCases

Property in EnumType

Summary

Gets the collection of enum cases in this enum.

public IEnumerable<KeyValuePair<string, ConstantTypeProperty>> EnumCases { get; }

DialogueException

Class in Yarn

Inherits from System.Exception

Summary

An exception that is thrown by Dialogue when there is an error in executing a Program .

public class DialogueException : System.Exception

NodeCompleteHandler

Property in Dialogue

Summary

Gets or sets the NodeCompleteHandler that is called when a node is complete.

public NodeCompleteHandler? NodeCompleteHandler { get; set; }

Header()

Constructor in Header

Summary

public Header()

VariableStorage

Property in Dialogue

Summary

Gets or sets the object that provides access to storing and retrieving the values of variables.

public IVariableStorage VariableStorage { get; set; }

TypeMembers

Property in FunctionType

Summary

Gets the collection of type information for this type's type members.

public IReadOnlyDictionary<string, ITypeMember> TypeMembers { get }

LineHandler

Property in Dialogue

Summary

Gets or sets the LineHandler that is called when a line is ready to be shown to the user.

public LineHandler? LineHandler { get; set; }

Description

Property in EnumBase

Summary

Gets a string describing this type.

public override string Description { get }

Name

Property in EnumType

Summary

Gets the name of this type.

public override string Name { get }

VariadicParameterType

Property in FunctionType

Summary

Gets the type of value that this type of function accepts as a variadic parameter.

public IType? VariadicParameterType { get; internal set; }

Remarks

This value is null if this type of function does not accept variadic parameters.

Description

Property in EnumType

Summary

Gets a string describing this type.

public override string Description { get }

PrepareForLinesHandler

Property in Dialogue

Summary

Gets or sets the PrepareForLinesHandler that is called when the dialogue anticipates delivering some lines.

public PrepareForLinesHandler? PrepareForLinesHandler { get; set; }

Value

Property in ConstantTypeProperty

Summary

Gets the value that is stored in this property.

public IConvertible Value { get; }

DefaultStartNodeName

Field in Dialogue

Summary

The node that execution will start from.

public const string DefaultStartNodeName = "Start";

Value

Property in Header

Summary

The value of the header.

public string Value { get; set; }

ValueFieldNumber

Field in Header

Summary

Field number for the "value" field.

public const int ValueFieldNumber = 2;

MergeFrom(pb::CodedInputStream)

Method in Header

Summary

public void MergeFrom(pb::CodedInputStream input)

Parameters

Name
Description

Google.Protobuf.CodedInputStream input

Parser

Property in Header

Summary

public static pb::MessageParser<Header> Parser { get; }

Clone()

Method in Header

Summary

public Header Clone()

Descriptor

Property in Header

Summary

public static pbr::MessageDescriptor Descriptor { get; }

EnumBase()

Constructor in EnumBase

Summary

Initialises a new instance of the EnumBase class.

public EnumBase()

ReturnType

Property in FunctionType

Summary

Gets the type of value that this function returns.

public IType ReturnType { get; internal set; }
public IEnumerable<string> GetTagsForNode(string nodeName)
public bool TryGetSmartVariable<T>(string name, out T result)
public static uint GetChecksum(string s)
public bool IsNodeGroup(string nodeName)
public bool HasSalientContent(string nodeGroup)
public IEnumerable<KeyValuePair<string, string>> GetHeaders(string nodeName)

Gets a string describing this property.

Gets the type of this property.

Gets the value that is stored in this property.

public class ConstantTypeProperty : ITypeMember

Summary

Remarks

Properties

Yarn

Gets the text of the command.

  • Dialogue.CommandHandler: Gets or sets the CommandHandler that is called when a command is to be delivered to the game.

public struct Command

Summary

Remarks

Properties

Yarn
Dialogue
Dialogue

See Also

  • LineHandler: Represents the method that is called when the Dialogue delivers a Line .

  • OptionsHandler: Represents the method that is called when the Dialogue delivers an OptionSet .

  • NodeStartHandler: Represents the method that is called when the Dialogue begins executing a node.

  • NodeCompleteHandler: Represents the method that is called when the Dialogue reaches the end of a node.

  • : Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.

public delegate void CommandHandler(Command command);

Yarn.Command command

Summary

Parameters

Yarn
Command

The that has been delivered.

See Also

Computes a CRC32 checksum from the given string.

Gets the CRC-32 hash of s as a string containing 8 lowercase hexadecimal characters.

public static class CRC32

GetChecksum(byte[])

Summary

Methods

Yarn.Utility

Computes a CRC32 checksum from the given bytes.

GetParameterAt(int)

Method in FunctionType

Summary

Gets the type of the parameter at the given index.

public IType GetParameterAt(int index)

Parameters

Name
Description

int index

The index of the parameter to get the type for.

Returns

The type of the parameter. If index is beyond the length of , and is not null , is returned.

Equals(IType)

Method in FunctionType

Summary

public bool Equals(IType other)

Parameters

Name
Description

other

IMarkupParser

Interface in Yarn

Summary

Contains methods for parsing raw text into a MarkupParseResult .

public interface IMarkupParser

Methods

Name
Description

Parses a string into markup, given a locale.

ParseMarkup(string,string)

Method in IMarkupParser

Summary

Parses a string into markup, given a locale.

public MarkupParseResult ParseMarkup(string rawText, string localeCode);

Parameters

Name
Description

string rawText

The text to parse.

string localeCode

Equals(Header)

Method in Header

Summary

public bool Equals(Header other)

Parameters

Name
Description

other

MergeFrom(Header)

Method in Header

Summary

public void MergeFrom(Header other)

Parameters

Name
Description

other

Type

Property in

Gets the type of this property.

DialogueCompleteHandler

Delegate in

Inherits from System.MulticastDelegate

Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.

  • : Represents the method that is called when the Dialogue delivers a .

  • : Represents the method that is called when the Dialogue delivers an .

CommandHandler

Property in

Gets or sets the that is called when a command is to be delivered to the game.

SetProgram(Program)

Method in

Loads all nodes from the provided .

This method replaces any existing nodes have been loaded.

Name
Description

GetHeaderValue(string,string)

Method in

Gets the value of the header named headerName on the node named nodeName , or null if the header can't be found.

If the node has more than one header named headerName , the first one is used.

Name
Description

EnumType(string,string,TypeBase)

Constructor in

Initializes a new instance of the class that represents an enum type. This type has no methods of its own, and is a subtype of .

Name
Description

SetSelectedOption(int)

Method in

Signals to the that the user has selected a specified .

After the Dialogue delivers an , this method must be called before is called.

The ID number that should be passed as the parameter to this method should be the field in the that represents the user's selection.

Name
Description

Parent

Property in

Gets the parent of this type.

EnumBase

Class in

Inherits from

The base type for all enumeration types.

Name
Description

SetNode(string)

Method in

Prepares the that the user intends to start running a node.

After this method is called, you call to start executing it.

If has been set, it may be called when this method is invoked, as the Dialogue determines which lines may be delivered during the startNode node's execution.

Name
Description

TryGetSmartVariable<T>(string,T)

Method in

Evaluate the value of a smart variable named name .

Name
Description

Parameters

Property in

Gets the list of the parameter types that this function is called with.

The length of this list also determines the number of parameters this function accepts (also known as the function's arity ).

Key

Property in

The name of the header.

ToString()

Method in

Equals(object)

Method in

Name
Description

Name

Property in

Gets the name of this type.

KeyFieldNumber

Field in

Field number for the "key" field.

Header(Header)

Constructor in

Name
Description

CalculateSize()

Method in

WriteTo(pb::CodedOutputStream)

Method in

Name
Description

Parent

Property in

Gets the parent of this type.

All types have as their ultimate parent type (except for itself.)

GetHashCode()

Method in

Description

Property in

Gets a more verbose description of this type.

TypeMembers

Property in

Gets the collection of type information for this type's type members.

ISmartVariableEvaluator

Interface in

Contains methods for evaluating the value of smart variables

Name
Description

Parent

Property in

Gets the parent of this type.

All types have as their ultimate parent type (except for itself.)

Parent

Property in

Gets the parent of this type.

Library

Property in

Gets the that this Dialogue uses to locate functions.

When the Dialogue is constructed, the Library is initialized with the built-in operators like + , - , and so on.

The locale to use when parsing the text.

Parameters
VariadicParameterType
VariadicParameterType
Description
Type
Value
Text
DialogueCompleteHandler
Command
GetChecksum(string)
GetChecksumString(string)
Yarn.IType
ParseMarkup(string,string)
Yarn.Header
Yarn.Header
public IType Type { get; }

Summary

ConstantTypeProperty

CommandHandler: Represents the method that is called when the Dialogue delivers a Command .

  • NodeStartHandler: Represents the method that is called when the Dialogue begins executing a node.

  • NodeCompleteHandler: Represents the method that is called when the Dialogue reaches the end of a node.

  • Summary

    See Also

    Yarn
    LineHandler
    Line
    OptionsHandler
    OptionSet
    public CommandHandler? CommandHandler { get; set; }

    Summary

    Dialogue
    CommandHandler

    Yarn.Program program

    The Program to use.

    Summary

    Remarks

    Parameters

    Dialogue
    Program

    string nodeName

    The name of the node.

    string headerName

    The name of the header.

    The value of the first header on the node with the specified header value.

    Summary

    Remarks

    Parameters

    Dialogue

    Returns

    The ID number of the Option that the user selected.

    • OptionsHandler: Represents the method that is called when the Dialogue delivers an OptionSet .

    • OptionSet: A set of Option s, sent from the Dialogue to the game.

    • Dialogue.Continue(): Starts, or continues, execution of the current Program.

    Summary

    Remarks

    Parameters

    Dialogue
    Dialogue
    Option
    OptionSet
    Continue()
    ID
    Option

    int selectedOptionID

    See Also

    public override IType? Parent { get }

    Summary

    EnumBase

    On return, contains the returned value of the smart variable, or the default value of T if a smart variable named name could not be found or its value could not be returned as type T .

    Name
    Description

    T

    The type of the returned value.

    true if the smart variable was evaluated, false otherwise.

    string name

    The name of the variable.

    Summary

    Parameters

    ISmartVariableEvaluator

    T result

    Type Parameters

    Returns

    public List<IType> Parameters { get; }

    Summary

    Remarks

    FunctionType
    public string Key { get; set; }

    Summary

    Header
    public override string ToString()

    Summary

    Header
    public override bool Equals(object other)

    object other

    Summary

    Parameters

    Header
    string Name { get; }

    Summary

    IType
    public const int KeyFieldNumber = 1;

    Summary

    Header
    public Header(Header other)

    Yarn.Header other

    Summary

    Parameters

    Header
    public int CalculateSize()

    Summary

    Header
    public void WriteTo(pb::CodedOutputStream output)

    Google.Protobuf.CodedOutputStream output

    Summary

    Parameters

    Header
    public IType Parent { get; }

    Summary

    Remarks

    FunctionType
    Any
    Any
    public override int GetHashCode()

    Summary

    Header
    string Description { get; }

    Summary

    IType
    System.Collections.Generic.IReadOnlyDictionary<string, ITypeMember> TypeMembers { get; }

    Summary

    IType
    public interface ISmartVariableEvaluator

    TryGetSmartVariable(string,T)

    Evaluate the value of a smart variable named name .

    Summary

    Methods

    Yarn
    IType? Parent { get; }

    Summary

    Remarks

    IType
    Any
    Any
    public override IType Parent { get }

    Summary

    EnumType
    public Library Library { get; internal set; }

    Summary

    Remarks

    Dialogue
    Library

    CurrentNode

    Property in Dialogue

    Summary

    Gets the name of the node that this Dialogue is currently executing.

    public string? CurrentNode { get; }

    Remarks

    If Continue() has never been called, this value will be null .

    Stop()

    Method in Dialogue

    Summary

    Immediately stops the Dialogue .

    public void Stop()
    public delegate void DialogueCompleteHandler();
    public void SetProgram(Program program)
    public string? GetHeaderValue(string nodeName, string headerName)
    public void SetSelectedOption(int selectedOptionID)
    bool TryGetSmartVariable<T>(string name, out T result);

    A string that describes this method.

    rawType

    public EnumType(string name, string description, TypeBase rawType)

    string name

    The name of this method.

    Summary

    Parameters

    EnumType
    EnumType
    Any

    string description

    Name
    Description

    Gets a string describing this type.

    Gets the name of this type.

    Gets the parent of this type.

    public class EnumBase : TypeBase

    EnumBase()

    Initialises a new instance of the EnumBase class.

    Summary

    Constructors

    Properties

    Yarn
    TypeBase

    string startNode

    The name of the node that will be run. The node have been loaded by calling .

    public void SetNode(string startNode = DefaultStartNodeName)

    Summary

    Remarks

    Parameters

    Dialogue
    Dialogue
    Continue()
    PrepareForLinesHandler

    GetSaliencyOptionsForNodeGroup(string)

    Method in Dialogue

    Summary

    Queries the Dialogue for what content could possibly run if the node group nodeGroup was run.

    public IEnumerable<Saliency.ContentSaliencyOption> GetSaliencyOptionsForNodeGroup(string nodeGroup)

    Remarks

    This method evaluates all nodes in the given node group, and returns a ContentSaliencyOption object for each node. This object contains the current number of passing and failing 'when' clauses on the node, as well as the complexity score for that node. This is the same information that's passed to a IContentSaliencyStrategy object's QueryBestContent(IEnumerable<ContentSaliencyOption>) method. This method is read-only, and calling it will not modify any variable state.

    Note that this method does not filter its output, and may include content options whose FailingConditionValueCount is greater than zero. It's up to the caller of this function to filter out these options if they're not wanted.

    This method can be used to see if any content will appear when a given node group is run. If the collection returned by this method is empty, then running this node group will not result in any content. This can be used, for example, to decide whether to show a 'character can be spoken to' indicator. You can also examine the individal ContentSaliencyOption objects to see if any content is available that passes a filter, such as whether content might appear that has a user-defined 'plot critical' tag.

    Parameters

    Name
    Description

    A collection of objects that may appear if and when the node group nodeGroup is run.

    Continue()

    Method in Dialogue

    Summary

    Starts, or continues, execution of the current Program.

    public void Continue()

    Remarks

    This method repeatedly executes instructions until one of the following conditions is encountered:

    • The LineHandler or CommandHandler is called. After calling either of these handlers, the Dialogue will wait until Continue() is called. Continue may be called from inside the LineHandler or CommandHandler, or may be called at any future time.

    • The OptionsHandler is called. When this occurs, the Dialogue is waiting for the user to specify which of the options has been selected, and SetSelectedOption(int) must be called before Continue() is called again.)

    • The Program reaches its end. When this occurs, must be called before is called again.

    • An error occurs while executing the Program.

    This method has no effect if it is called while the is currently in the process of executing instructions.

    • : Represents the method that is called when the Dialogue delivers a .

    • : Represents the method that is called when the Dialogue delivers an .

    • : Represents the method that is called when the Dialogue delivers a .

    • : Represents the method that is called when the Dialogue reaches the end of a node.

    EnumType

    Class in Yarn

    Inherits from TypeBase

    Summary

    A type that represents enumerations.

    public class EnumType : TypeBase

    Constructors

    Name
    Description

    Initializes a new instance of the class that represents an enum type. This type has no methods of its own, and is a subtype of .

    Properties

    Name
    Description

    IType

    Interface in Yarn

    Summary

    Defines properties that describe a type in the Yarn language.

    public interface IType

    Properties

    Name
    Description

    Gets a more verbose description of this type.

    GetStringIDForNode(string)

    Method in Dialogue

    Summary

    Returns the string ID that contains the original, uncompiled source text for a node.

    public string? GetStringIDForNode(string nodeName)

    Remarks

    A node's source text will only be present in the string table if its tags header contains rawText.

    Because the Dialogue class is designed to be unaware of the contents of the string table, this method does not test to see if the string table contains an entry with the line ID. You will need to test for that yourself.

    Parameters

    Name
    Description

    The string ID.

    FunctionType(IType,IType[])

    Constructor in FunctionType

    Summary

    Initialises a new instances of the FunctionType class.

    public FunctionType(IType returnType, params IType[] parameterTypes)

    Parameters

    Name
    Description

    returnType

    The type of the value that this type of function returns.

    FunctionType

    Class in

    Inherits from System.Object

    A type that represents a function.

    Functions have parameters and a return type, and can be called from script. Instances of this type are created when the host application registers new functions (such as through using the methods or similar.)

    Name
    Description

    string nodeName

    The name of the node.

    Returns

    string nodeGroup

    The name of the node group to get available content for.

    Returns

    ContentSaliencyOption
  • DialogueCompleteHandler: Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.

  • See Also

    SetNode(string)
    Continue()
    Dialogue
    LineHandler
    Line
    OptionsHandler
    OptionSet
    CommandHandler
    Command
    NodeCompleteHandler
    Yarn.TypeBase
    Description
    Name
    Parent
    SetProgram(Program)

    Gets the name of this type.

    Parent

    Gets the parent of this type.

    TypeMembers

    Gets the collection of type information for this type's type members.

    Description
    Name

    Yarn.IType[] parameterTypes

    The types of the parameters that this type of function accepts.

    Yarn.IType

    Gets the parent of this type.

    Gets the type of this enum's members.

    Description

    Gets a string describing this type.

    EnumCases

    Gets the collection of enum cases in this enum.

    Name

    Gets the name of this type.

    EnumType(string,string,TypeBase)
    EnumType
    Any

    Initialises a new instances of the class.

    Name
    Description

    Gets the type of the parameter at the given index.

    Name
    Description

    Gets a more verbose description of this type.

    Gets the name of this type.

    public class FunctionType : IType, IEquatable<IType>

    Summary

    Remarks

    Constructors

    Yarn
    RegisterFunction(string,Delegate)

    Methods

    Properties

    Header

    Class in

    Inherits from System.Object

    Name
    Description
    Parent
    RawType

    Gets the list of the parameter types that this function is called with.

    Parent

    Gets the parent of this type.

    ReturnType

    Gets the type of value that this function returns.

    TypeMembers

    Gets the collection of type information for this type's type members.

    VariadicParameterType

    Gets the type of value that this type of function accepts as a variadic parameter.

    FunctionType(IType,IType[])
    FunctionType
    Equals(IType)
    GetParameterAt(int)
    ToString()
    Description
    Name
    Parameters

    Name
    Description

    Field number for the "key" field.

    Field number for the "value" field.

    Name
    Description

    Name
    Description

    The name of the header.

    public sealed class Header : pb::IMessage<Header>
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
    , pb::IBufferMessage

    Header()

    Summary

    Constructors

    Yarn

    Fields

    Methods

    Properties

    Dialogue

    Class in Yarn

    Inherits from System.Object

    Summary

    Co-ordinates the execution of Yarn programs.

    public class Dialogue : ISmartVariableEvaluator

    Constructors

    Name
    Description

    Initializes a new instance of the class.

    Fields

    Name
    Description
    Name
    Description
    Name
    Description

    Equals(Header)

    GetHashCode()

    MergeFrom(pb::CodedInputStream)

    MergeFrom(Header)

    ToString()

    WriteTo(pb::CodedOutputStream)

    Value

    The value of the header.

    Header(Header)
    KeyFieldNumber
    ValueFieldNumber
    CalculateSize()
    Clone()
    Equals(object)
    Descriptor
    Key
    Parser

    Queries the for what content could possibly run if the node group nodeGroup was run.

    Returns the string ID that contains the original, uncompiled source text for a node.

    Returns the tags for the node nodeName .

    Returns if the node group has any potential nodes to be run based on the current salient selector.

    Gets a value indicating whether nodeName is the name of a valid node group in the program.

    Gets a value indicating whether a specified node exists in the Program.

    Prepares the that the user intends to start running a node.

    Loads all nodes from the provided .

    Signals to the that the user has selected a specified .

    Immediately stops the .

    Evaluate the value of a smart variable named name .

    Unloads all nodes from the Dialogue.

    Gets or sets the that is called when the dialogue reaches its end.

    Gets a value indicating whether the Dialogue is currently executing Yarn instructions.

    Gets the that this Dialogue uses to locate functions.

    Gets or sets the that is called when a line is ready to be shown to the user.

    Invoked when the Dialogue needs to report debugging information.

    Invoked when the Dialogue needs to report an error.

    Gets or sets the that is called when a node is complete.

    Gets the names of the nodes in the currently loaded Program.

    Gets or sets the that is called when a node is started.

    Gets or sets the that is called when a set of options are ready to be shown to the user.

    Gets or sets the that is called when the dialogue anticipates delivering some lines.

    Gets or sets the object that provides access to storing and retrieving the values of variables.

    DefaultStartNodeName

    The node that execution will start from.

    Continue()

    Starts, or continues, execution of the current Program.

    GetHeaders(string)

    Gets the collection of headers present on the node named nodeName .

    GetHeaderValue(string,string)

    CommandHandler

    Gets or sets the CommandHandler that is called when a command is to be delivered to the game.

    ContentSaliencyStrategy

    Gets or sets the content saliency strategy used by this Dialogue .

    CurrentNode

    Methods

    Properties

    Dialogue(Yarn.IVariableStorage)
    Dialogue

    Gets the value of the header named headerName on the node named nodeName , or null if the header can't be found.

    Gets the name of the node that this Dialogue is currently executing.

    Yarn Namespace

    Summary

    Contains classes for working with compiled Yarn programs.

    Classes

    Name
    Description

    Represents a property that belongs to a type and contains a read-only value.

    Name
    Description
    Name
    Description
    Name
    Description
    Name
    Description
    Name
    Description
    GetSaliencyOptionsForNodeGroup(string)
    Dialogue
    GetStringIDForNode(string)
    GetTagsForNode(string)
    HasSalientContent(string)
    IsNodeGroup(string)
    NodeExists(string)
    SetNode(string)
    Dialogue
    SetProgram(Program)
    Program
    SetSelectedOption(int)
    Dialogue
    Option
    Stop()
    Dialogue
    TryGetSmartVariable(string,T)
    UnloadAll()
    DialogueCompleteHandler
    DialogueCompleteHandler
    IsActive
    Library
    Library
    LineHandler
    LineHandler
    LogDebugMessage
    LogErrorMessage
    NodeCompleteHandler
    NodeCompleteHandler
    NodeNames
    NodeStartHandler
    NodeStartHandler
    OptionsHandler
    OptionsHandler
    PrepareForLinesHandler
    PrepareForLinesHandler
    VariableStorage

    Co-ordinates the execution of Yarn programs.

    An exception that is thrown by when there is an error in executing a .

    The base type for all enumeration types.

    A type that represents enumerations.

    A type that represents a function.

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

    A simple concrete implementation of that keeps all variables in memory.

    A node of Yarn script, contained within a , and containing Yarn.Instruction s.

    A compiled Yarn program.

    Provides the base class for all concrete types.

    Contains the built-in types available in the Yarn language.

    Represents the method that is called when the Dialogue delivers a .

    Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.

    Represents different kinds of variables that can be fetched from a using .

    Contains methods for parsing raw text into a .

    Contains methods for evaluating the value of smart variables

    Contains classes for compiling Yarn code.

    Contains classes for working with markup in Yarn lines.

    A command, sent from the to the game.

    A line of dialogue, sent from the to the game.

    Delegates

    Enums

    Interfaces

    Namespaces

    Structs

    ConstantTypeProperty
    Dialogue

    Represents the method that is called when the Dialogue delivers a .

    Represents a method that receives diagnostic messages and error information from a .

    Represents the method that is called when the Dialogue reaches the end of a node.

    Represents the method that is called when the Dialogue begins executing a node.

    Represents the method that is called when the Dialogue delivers an .

    Represents the method that is called when the dialogue anticipates that it will deliver lines.

    Defines properties that describe a type in the Yarn language.

    Provides properties used to work with members of a type.

    Provides a mechanism for retrieving values.

    Provides a mechanism for storing values.

    Represents a read-only value in the Yarn Spinner virtual machine.

    Contains classes for choosing the most relevant content out of a set of possible options.

    Contains classes for working with Yarn Spinner in the Unity game engine.

    Contains utility classes used by Yarn Spinner.

    A set of s, sent from the to the game.

    DialogueException
    Dialogue
    Program
    EnumBase
    EnumType
    FunctionType
    Header
    Library
    MemoryVariableStore
    IVariableStorage
    Node
    Program
    Program
    TypeBase
    Types
    CommandHandler
    Command
    DialogueCompleteHandler
    LineHandler
    VariableKind
    Dialogue
    TryGetValue<T>(string,T?)
    IMarkupParser
    MarkupParseResult
    ISmartVariableEvaluator
    IType
    Yarn.Compiler
    Yarn.Markup
    Yarn.Saliency
    Command
    Dialogue
    Line
    Dialogue
    OptionSet
    Line
    Logger
    Dialogue
    NodeCompleteHandler
    NodeStartHandler
    OptionsHandler
    OptionSet
    PrepareForLinesHandler
    ITypeMember
    IVariableAccess
    IVariableStorage
    IYarnValue
    Yarn.Unity
    Yarn.Utility
    Option
    Dialogue