/*
Yarn Spinner is licensed to you under the terms found in the file LICENSE.md.
*/
using System;
using System.Reflection;
#nullable enable
namespace Yarn.Unity
{
public partial class DialogueRunner : IActionRegistration
{
///
public void AddCommandHandler(string commandName, Delegate handler) => CommandDispatcher.AddCommandHandler(commandName, handler);
///
public void AddCommandHandler(string commandName, MethodInfo method) => CommandDispatcher.AddCommandHandler(commandName, method);
///
public void RemoveCommandHandler(string commandName) => CommandDispatcher.RemoveCommandHandler(commandName);
///
public void AddFunction(string name, Delegate implementation) => CommandDispatcher.AddFunction(name, implementation);
///
public void RemoveFunction(string name) => CommandDispatcher.RemoveFunction(name);
public void RegisterFunctionDeclaration(string name, Type returnType, Type[] parameterTypes) { /* no-op */ }
}
}