Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Field in Declaration
The string used for SourceFileName if the Declaration was found outside of a Yarn source file.
public const string ExternalDeclaration = "(External)";Method in Declaration
Creates a new instance of the Declaration class, using the given name and default value. The ReturnType of the new instance will be configured based on the type of defaultValue , and the DeclarationType will be Type.Variable . All other properties will be their default values.
A new instance of the class.
object obj
string name
The name of the new declaration.
System.IConvertible defaultValue
The default value of the declaration. This must be a string, a number (integer or floating-point), or boolean value.
string description
The description of the new declaration.
Yarn.IType type
public IConvertible DefaultValue { get; internal set; }public override int GetHashCode()public static Declaration CreateVariable(string name, Yarn.IType type, IConvertible defaultValue, string description = null)Class in Yarn.Compiler
Inherits from System.Object
Property in Declaration
Gets the name of the node in which this Declaration was found.
public string SourceNodeName { get; internal set; }If this was not found in a Yarn source file, this will be null .
public class Declarationpublic Yarn.IType Type { get; internal set; }Gets the name of the file in which this Declaration was found.
Gets the line number at which this Declaration was found in the node indicated by .
Gets the name of the node in which this Declaration was found.
The string used for SourceFileName if the Declaration was found outside of a Yarn source file.
Creates a new instance of the Declaration class, using the given name and default value. The ReturnType of the new instance will be configured based on the type of defaultValue , and the DeclarationType will be Type.Variable . All other properties will be their default values.
Gets the default value of this Declaration , if no value has been specified in code or is available from a Dialogue 's IVariableStorage .
Gets a string describing the purpose of this Declaration .
Get or sets a value indicating whether this Declaration was implicitly inferred from usage.
Gets the name of this Declaration.
The line number at which this Declaration was found in the source file.
If this Declaration was not found in a Yarn source file, this will be -1.
public int SourceFileLine { get; internal set; }public string Description { get; internal set; }public bool IsImplicit { get; internal set; }If this Declaration was not found in a Yarn source file, this will be ExternalDeclaration .
public string SourceFileName { get; internal set; }If this Declaration was not found in a Yarn source file, this will be -1.
public int SourceNodeLine { get; internal set; }Property in Declaration
Gets the name of this Declaration.
public string Name { get; internal set; }