IActionRegistration

Interface in Yarn.Unity

Summary

Contains methods that allow adding and removing Yarn commands and functions.

public interface IActionRegistration

Methods

NameDescription
AddCommandHandler(string,Delegate)Adds a command handler. Dialogue will pause execution after the command is called.
AddCommandHandler(string,MethodInfo)Adds a command handler. Dialogue will pause execution after the command is called.
AddFunction(string,Delegate)Add a new function that returns a value, so that it can be called from Yarn scripts.
RegisterFunctionDeclaration(string,Type,Type[])Registers a function as existing, without supplying an implementation.
RemoveCommandHandler(string)Removes a command handler.
RemoveFunction(string)Remove a registered function.