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...
Class in Yarn.Compiler.Upgrader
Inherits from System.Object
Contains methods for upgrading the syntax of Yarn scripts.
public static class LanguageUpgraderUpgrades a Yarn script from one version of the language to another, producing both the fully upgraded text as well as a collection of replacements.
Method in LanguageUpgrader
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)upgradeJob
The upgrade job to perform.
An object containing the results of the upgrade operation.
Method in
Constructor in
Method in
public bool Contains(T item)T item
public OrderedSet(IEqualityComparer<T> comparer)System.Collections.Generic.IEqualityComparer<T> comparer
public void Clear()Specifies what kind of language upgrading should be applied.
Contains information describing a replacement to make in a string.
Property in
Method in
Field in
A descriptive comment explaining why the substitution is necessary.
public virtual bool IsReadOnly { get };public bool Remove(T item)T item
public string Comment;Field in TextReplacement
The line in the original string where the substitution should be made.
public int StartLine;Field in TextReplacement
The string to expect at Start in the original string.
public string OriginalText;Property in TextReplacement
Gets the length of OriginalText .
public int OriginalLength { get };Property in UpgradeResult
Gets a collection containing all Diagnostic objects across all of the files in Files .
public IEnumerable<Diagnostic> Diagnostics { get };Field in TextReplacement
The position in the original string where the substitution should be made.
public int Start;Struct in Yarn.Compiler.Upgrader
Inherits from System.ValueType
public struct UpgradeJobStruct in
Inherits from System.ValueType
Enum in
Inherits from System.Enum
Specifies what kind of language upgrading should be applied.
Method in
Constructor in
Field in
The string to replace with at .
Field in
Enumeration Member in
Indicates an upgrade from Yarn Spinner 1.0 syntax to Yarn Spinner 2.0 syntax.
Property in
Gets the length of .
Field in
Field in
public void CopyTo(T[] array, int arrayIndex)T[] array
int arrayIndex
Yarn.Compiler.Upgrader.UpgradeType upgradeType
System.Collections.Generic.IEnumerable<Yarn.Compiler.CompilationJob.File> files
public string ReplacementText;public string OriginalSource;Version1to2public int ReplacementLength { get };public List<Yarn.Compiler.CompilationJob.File> Files;public string Path;public UpgradeJob(UpgradeType upgradeType, IEnumerable<CompilationJob.File> files)Gets a collection containing all objects across all of the files in .
public struct UpgradeResultIndicates an upgrade from Yarn Spinner 1.0 syntax to Yarn Spinner 2.0 syntax.
public enum UpgradeType
{
Version1to2
}Struct in UpgradeResult
Inherits from System.ValueType
public struct OutputFileClass in
Inherits from System.Object
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.
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.
public bool IsNewFile;public class OrderedSet<T> : ICollection<T>Struct in Yarn.Compiler.Upgrader
Inherits from System.ValueType
Contains information describing a replacement to make in a string.
public struct TextReplacementA 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 .
Method in
public void Add(IEnumerable<T> items)System.Collections.Generic.IEnumerable<T> items