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...
Field in Project
The current version of .yarnproject file format.
public const int CurrentProjectFileVersion = YarnSpinnerProjectVersion3;Field in Project
A placeholder string that represents the location of the workspace root in paths.
public const string WorkspaceRootPlaceholder = "${workspaceRoot}";Field in Project
A version number representing Yarn Spinner 2.
public const int YarnSpinnerProjectVersion2 = 2;Field in Project
A version number representing Yarn Spinner 3.
public const int YarnSpinnerProjectVersion3 = 3;Method in Project
Gets a value indicating whether path is a path that is included in this project.
string path
The path to check.
true if path is a path that is included in this project; false otherwise.
Method in Project
Gets a value indicating whether number is a valid Yarn Spinner version number.
public static bool IsValidVersionNumber(int number)int number
Property in Project
Gets or sets a value indicating whether compiler features that are not intended for production use are allowed.
public bool AllowLanguagePreviewFeatures { get; set; }Property in Project
Gets or sets the base language of the project, as an IETF BCP-47 language tag.
public string BaseLanguage { get; set; }The base language is the language that the Yarn scripts is written in.
Property in Project
Gets or sets a dictionary containing instructions that control how the Yarn Spinner compiler should compile a project.
public Dictionary<string, JsonValue> CompilerOptions { get; set; }Property in Project
Gets or sets the path to a JSON file containing command and function definitions that this project references.
public string? Definitions { get; set; }Definitions files are used by editing tools to provide type information and other externally-defined data used by the Yarn scripts.
Property in Project
Gets the absolute paths to the project's Definitions files.
public IEnumerable<string> DefinitionsFiles { get; }Property in Project
Gets the path to the Definitions file, relative to this project's location.
public string? DefinitionsPath { get; }Project.DefinitionsFiles: Gets the absolute paths to the project's Definitions files.
Property in Project
Gets or sets the collection of file search patterns that should be excluded from this project.
public IEnumerable<string> ExcludeFilePatterns { get; set; }If a file is matched by a pattern in SourceFilePatterns , and is also matched by a pattern in ExcludeFilePatterns , then it is not included in the value returned by SourceFiles .
Property in Project
Contains any data parsed from the source file that was not matched to a property on this type.
public Dictionary<string, JsonElement>? ExtensionData { get; set; }Property in Project
Gets or sets the file version of the project.
public int FileVersion { get; set; }This value is required to be equal to CurrentProjectFileVersion .
Property in Project
Gets or sets the collection of LocalizationInfo objects that store information about where localized data for this project is found.
public Dictionary<string, LocalizationInfo> Localisation { get; set; }Property in Project
Gets the path that the Project was loaded from.
public string? Path { get; set; }This value is not stored when the file is saved, but is instead determined when the file is loaded by LoadFromFile(string,string?) , or provided when the Project is constructed.
Property in Project
Gets or sets the collection of file search patterns used to locate Yarn files that form this project.
public IEnumerable<string> SourceFilePatterns { get; set; }Property in Project
Gets the collection of Yarn files that should be used to compile the project.
public IEnumerable<string> SourceFiles { get; }This collection uses a Yarn.Compiler.Project.Matcher to find all files specified by SourceFilePatterns , excluding those that are specified by ExcludeFilePatterns .
Property in Project
The location of the root of the workspace in which this project is located.
public string? WorkspaceRootPath { get; set; }Property in LocalizationInfo
Gets or sets the location at which localized assets may be found.
public string? Assets { get; set; }Property in LocalizationInfo
Gets or sets the location at which the localized string table may be found.
public string? Strings { get; set; }public Project(string path, string? workspaceRootPath = null)public bool IsMatchingPath(string path)Class in Project
Inherits from System.Object
Stores the locations of where localized assets and a localized string table for a Yarn Project may be found.
public static Project LoadFromFile(string path, string? workspaceRoot = null)public class LocalizationInfoClass in Yarn.Compiler
Inherits from System.Object
Yarn Projects represent instructions on where to find Yarn scripts and associated assets, and how they should be compiled.
public class ProjectStores the locations of where localized assets and a localized string table for a Yarn Project may be found.
Initializes a new instance of the class.
Initializes a new instance of the class.
The current version of .yarnproject file format.
A placeholder string that represents the location of the workspace root in paths.
Gets a string containing JSON-formatted text that represents this .
Gets a value indicating whether path is a path that is included in this project.
Gets or sets a value indicating whether compiler features that are not intended for production use are allowed.
Gets or sets the base language of the project, as an IETF BCP-47 language tag.
A version number representing Yarn Spinner 2.
A version number representing Yarn Spinner 3.
Gets a value indicating whether number is a valid Yarn Spinner version number.
Loads and parses a from a file on disk.
Saves a as JSON-formatted text to a file on disk.
Gets or sets a dictionary containing instructions that control how the Yarn Spinner compiler should compile a project.
Gets or sets the path to a JSON file containing command and function definitions that this project references.
Gets the absolute paths to the project's Definitions files.
Gets the path to the Definitions file, relative to this project's location.
Gets or sets the collection of file search patterns that should be excluded from this project.
Contains any data parsed from the source file that was not matched to a property on this type.
Gets or sets the file version of the project.
Gets or sets the collection of objects that store information about where localized data for this project is found.
Gets the path that the was loaded from.
Gets or sets the collection of file search patterns used to locate Yarn files that form this project.
Gets the collection of Yarn files that should be used to compile the project.
The location of the root of the workspace in which this project is located.