同步
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
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
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public void AddCommandHandler(string commandName, Delegate handler) => CommandDispatcher.AddCommandHandler(commandName, handler);
|
||||
|
||||
/// <inheritdoc />
|
||||
public void AddCommandHandler(string commandName, MethodInfo method) => CommandDispatcher.AddCommandHandler(commandName, method);
|
||||
|
||||
/// <inheritdoc />
|
||||
public void RemoveCommandHandler(string commandName) => CommandDispatcher.RemoveCommandHandler(commandName);
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public void AddFunction(string name, Delegate implementation) => CommandDispatcher.AddFunction(name, implementation);
|
||||
|
||||
/// <inheritdoc />
|
||||
public void RemoveFunction(string name) => CommandDispatcher.RemoveFunction(name);
|
||||
|
||||
public void RegisterFunctionDeclaration(string name, Type returnType, Type[] parameterTypes) { /* no-op */ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user