Definitions
Definitions represent external actions that are part of the Project and are used in different ways by different parts of Yarn Spinner.
These are primarily constructed by providing the YSLS json file but you can manually create one for tests.
public class DefinitionsInherits from System.Object
#Constructors
#Definitions(ReadOnlyMemory<byte>, int)
Creates a new definition from the provided json source
public Definitions(ReadOnlyMemory<byte> source, int projectFileVersion)Parameters
sourceSystem.ReadOnlyMemory<byte>The source JSON of the definitionsprojectFileVersionintThe version number of the project file
#Definitions(string, int)
Creates a new definition from the provided json source
public Definitions(string source, int projectFileVersion)Parameters
sourcestringThe source JSON of the definitionsprojectFileVersionintThe version number of the project file
#Fields
#commands
Contains all the commands externally provided by the definitions file.
May be empty
public List<Yarn.Shared.Action> commands;Type List
#functions
Contains all the different function definitions externally provided by the definitions file.
May be empty
public List<Declaration> functions;Type List
Generated from Yarn Spinner for Unity 3.3.