All pages
Powered by GitBook
1 of 39

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

LanguageUpgrader

Class in Yarn.Compiler.Upgrader

Inherits from System.Object

Summary

Contains methods for upgrading the syntax of Yarn scripts.

public static class LanguageUpgrader

Methods

Name
Description

Upgrades a Yarn script from one version of the language to another, producing both the fully upgraded text as well as a collection of replacements.

Upgrade(UpgradeJob)

Upgrade(UpgradeJob)

Method in LanguageUpgrader

Summary

Upgrades a Yarn script from one version of the language to another, producing both the fully upgraded text as well as a collection of replacements.

public static UpgradeResult Upgrade(UpgradeJob upgradeJob)

Parameters

Name
Description

upgradeJob

The upgrade job to perform.

Returns

An object containing the results of the upgrade operation.

UpgradeResult
Yarn.Compiler.Upgrader.UpgradeJob

Yarn.Compiler.Upgrader Namespace

Summary

Contains classes for upgrading Yarn code to more recent versions of the language.

Classes

Name
Description

Contains methods for upgrading the syntax of Yarn scripts.

Name
Description
Name
Description

Contains(T)

Method in

Name
Description

OrderedSet(IEqualityComparer<T>)

Constructor in

Name
Description

Clear()

Method in

public bool Contains(T item)

T item

Summary

Parameters

OrderedSet
public OrderedSet(IEqualityComparer<T> comparer)

System.Collections.Generic.IEqualityComparer<T> comparer

Summary

Parameters

OrderedSet
public void Clear()

Summary

OrderedSet

Specifies what kind of language upgrading should be applied.

Contains information describing a replacement to make in a string.

Enums

Structs

LanguageUpgrader

IsReadOnly

Property in

Remove(T)

Method in

Name
Description

Comment

Field in

A descriptive comment explaining why the substitution is necessary.

UpgradeResult

OrderedSet
UpgradeType
TextReplacement
UpgradeJob
public virtual bool IsReadOnly { get };

Summary

OrderedSet
public bool Remove(T item)

T item

Summary

Parameters

OrderedSet
public string Comment;

Summary

TextReplacement

GetEnumerator()

Method in OrderedSet

Summary

public IEnumerator<T> GetEnumerator()

OrderedSet()

Constructor in OrderedSet

Summary

public OrderedSet()

Count

Property in OrderedSet

Summary

public int Count { get };

UpgradeType

Field in UpgradeJob

Summary

public UpgradeType UpgradeType;

StartLine

Field in TextReplacement

Summary

The line in the original string where the substitution should be made.

public int StartLine;

OriginalText

Field in TextReplacement

Summary

The string to expect at Start in the original string.

public string OriginalText;

OriginalLength

Property in TextReplacement

Summary

Gets the length of OriginalText .

public int OriginalLength { get };

Replacements

Field in OutputFile

Summary

public IEnumerable<TextReplacement> Replacements;

Diagnostics

Field in OutputFile

Summary

public IEnumerable<Diagnostic> Diagnostics;

Diagnostics

Property in UpgradeResult

Summary

Gets a collection containing all Diagnostic objects across all of the files in Files .

public IEnumerable<Diagnostic> Diagnostics { get };

Start

Field in TextReplacement

Summary

The position in the original string where the substitution should be made.

public int Start;

Add(T)

Method in OrderedSet

Summary

public bool Add(T item)

Parameters

Name
Description

T item

UpgradeJob

Struct in Yarn.Compiler.Upgrader

Inherits from System.ValueType

Summary

public struct UpgradeJob

Constructors

Name
Description

Name
Description

UpgradeResult

Struct in

Inherits from System.ValueType

Name
Description

UpgradeType

Enum in

Inherits from System.Enum

Specifies what kind of language upgrading should be applied.

Name
Description

CopyTo(T[],int)

Method in

Name
Description

UpgradeJob(UpgradeType,IEnumerable<CompilationJob.File>)

Constructor in

Name
Description

ReplacementText

Field in

The string to replace with at .

OriginalSource

Field in

Version1to2

Enumeration Member in

Indicates an upgrade from Yarn Spinner 1.0 syntax to Yarn Spinner 2.0 syntax.

ReplacementLength

Property in

Gets the length of .

Files

Field in

Path

Field in

Files

UpgradeType

Fields

UpgradeJob(UpgradeType,IEnumerable<CompilationJob.File>)

public void CopyTo(T[] array, int arrayIndex)

T[] array

Summary

Parameters

OrderedSet

int arrayIndex

Yarn.Compiler.Upgrader.UpgradeType upgradeType

Summary

Parameters

UpgradeJob

System.Collections.Generic.IEnumerable<Yarn.Compiler.CompilationJob.File> files

public string ReplacementText;

Summary

TextReplacement
OriginalText
Start
public string OriginalSource;

Summary

OutputFile
Version1to2

Summary

UpgradeType
public int ReplacementLength { get };

Summary

TextReplacement
ReplacementLength
public List<Yarn.Compiler.CompilationJob.File> Files;

Summary

UpgradeJob
public string Path;

Summary

OutputFile

Files

Field in UpgradeResult

Summary

public List<OutputFile> Files;

UpgradedSource

Property in OutputFile

Summary

public string UpgradedSource { get };
public UpgradeJob(UpgradeType upgradeType, IEnumerable<CompilationJob.File> files)
Name
Description

Gets a collection containing all objects across all of the files in .

Name
Description

public struct UpgradeResult

Files

Summary

Fields

Yarn.Compiler.Upgrader

Properties

Structs

Indicates an upgrade from Yarn Spinner 1.0 syntax to Yarn Spinner 2.0 syntax.

public enum UpgradeType
{
    Version1to2
}

Summary

Members

Yarn.Compiler.Upgrader

OutputFile

Struct in UpgradeResult

Inherits from System.ValueType

Summary

public struct OutputFile

Fields

Name
Description

Name
Description

OrderedSet

Class in

Inherits from System.Object

Name
Description

IsNewFile

Field in

Indicates whether this represents a new file to be created. If this is true , will be the empty string, and will be empty.

Diagnostics
Diagnostic
Files
OutputFile
Version1to2

IsNewFile

Indicates whether this OutputFile represents a new file to be created. If this is true , OriginalSource will be the empty string, and Replacements will be empty.

OriginalSource

Path

Replacements

UpgradedSource

Properties

Diagnostics
public bool IsNewFile;

Summary

OutputFile
OutputFile
OriginalSource
Replacements

Name
Description

Name
Description

public class OrderedSet<T> : ICollection<T>

OrderedSet()

Summary

Constructors

Yarn.Compiler.Upgrader

Methods

Properties

TextReplacement

Struct in Yarn.Compiler.Upgrader

Inherits from System.ValueType

Summary

Contains information describing a replacement to make in a string.

public struct TextReplacement

Fields

Name
Description
Name
Description

OrderedSet(IEqualityComparer)
Add(T)
Add(IEnumerable)
Count
IsReadOnly

A descriptive comment explaining why the substitution is necessary.

The string to expect at in the original string.

The string to replace with at .

The position in the original string where the substitution should be made.

The line in the original string where the substitution should be made.

Gets the length of .

Gets the length of .

Properties

Clear()
Contains(T)
CopyTo(T[],int)
GetEnumerator()
Remove(T)
Comment
OriginalText
Start
ReplacementText
OriginalText
Start
Start
StartLine
OriginalLength
OriginalText
ReplacementLength
ReplacementLength

Add(IEnumerable<T>)

Method in

Name
Description
public void Add(IEnumerable<T> items)

System.Collections.Generic.IEnumerable<T> items

Summary

Parameters

OrderedSet