DeclarationBuilder
public class DeclarationBuilderInherits from System.Object
With-prefixed methods to set properties. When you're done, access
the Declaration property to get the final, constructed
Declaration.#Properties
#Declaration
public Declaration Declaration { get; }Type Declaration
#Methods
#WithDefaultValue(System.IConvertible)
public DeclarationBuilder WithDefaultValue(System.IConvertible defaultValue)Parameters
defaultValueSystem.IConvertibleThe default value to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithDescription(string?)
public DeclarationBuilder WithDescription(string? description)Parameters
descriptionstringThe description to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithImplicit(bool)
public DeclarationBuilder WithImplicit(bool isImplicit)Parameters
isImplicitboolThe is-implicit value to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithName(string)
public DeclarationBuilder WithName(string name)Parameters
namestringThe name to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithRange(Yarn.Compiler.Range)
public DeclarationBuilder WithRange(Yarn.Compiler.Range range)Parameters
rangeYarn.Compiler.RangeThe range to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithSourceFileName(string)
public DeclarationBuilder WithSourceFileName(string sourceFileName)Parameters
sourceFileNamestringThe source file name to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithSourceNodeName(string)
public DeclarationBuilder WithSourceNodeName(string sourceNodeName)Parameters
sourceNodeNamestringThe source node name to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
#WithType(IType)
public DeclarationBuilder WithType(IType type)Parameters
typeYarn.ITypeThe type to apply to the Declaration.
Returns DeclarationBuilder: The DeclarationBuilder instance that received
this method call.
Generated from Yarn Spinner for Unity 3.3.