Interface in Yarn.Unity
Contains methods that allow adding and removing Yarn commands and functions.
public interface IActionRegistration
AddCommandHandler(string,Delegate)
Adds a command handler. Dialogue will pause execution after the command is called.
AddCommandHandler(string,MethodInfo)
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.
Last updated 2 months ago
Was this helpful?