ActionInvoker
public static class ActionInvokerInherits from System.Object
#Nested Types
- CanHandleCommand delegate
- CanHandleFunction delegate
- ConvertRuntimeIConvertibleValue delegate
- ConvertRuntimeStringValue delegate
- InvokeCommand delegate
- InvokeFunction delegate
#Methods
#AddCommandHandler(string, Delegate)
public static void AddCommandHandler(string commandName, Delegate handler)Parameters
commandNamestringhandlerDelegate
#AddCommandHandler(string, System.Reflection.MethodInfo)
public static void AddCommandHandler(string commandName, System.Reflection.MethodInfo method)Parameters
commandNamestringmethodSystem.Reflection.MethodInfo
#AddFunction(string, Delegate)
public static void AddFunction(string name, Delegate implementation)Parameters
namestringimplementationDelegate
#AddFunction(string, System.Reflection.MethodInfo)
public static void AddFunction(string name, System.Reflection.MethodInfo implementation)Parameters
namestringimplementationSystem.Reflection.MethodInfo
#CanInvoke(string)
public static bool CanInvoke(string functionName)Parameters
functionNamestring
Returns Boolean
#Invoke(string, IConvertible[], CancellationToken)
public static YarnTask<IConvertible> Invoke(string functionName, IConvertible[] parameters, CancellationToken token)Parameters
functionNamestringparametersIConvertible[]tokenCancellationToken
Returns YarnTask
#RegisterCommandHandler(CanHandleCommand, InvokeCommand)
public static void RegisterCommandHandler(CanHandleCommand check, InvokeCommand call)Parameters
#RegisterFunctionHandler(CanHandleFunction, InvokeFunction)
public static void RegisterFunctionHandler(CanHandleFunction check, InvokeFunction call)Parameters
#RegisterRuntimeIConvertibleConverter(ConvertRuntimeIConvertibleValue)
public static void RegisterRuntimeIConvertibleConverter(ConvertRuntimeIConvertibleValue converter)Parameters
#RegisterRuntimeStringConverter(ConvertRuntimeStringValue)
public static void RegisterRuntimeStringConverter(ConvertRuntimeStringValue converter)Parameters
#RemoveCommandHandler(string)
public static void RemoveCommandHandler(string commandName)Parameters
commandNamestring
#RemoveFunction(string)
public static void RemoveFunction(string name)Parameters
namestring
#TryRuntimeConvert(IConvertible, Type, object?)
public static bool TryRuntimeConvert(IConvertible input, Type type, out object? value)Parameters
inputIConvertibletypeTypevalueobject
Returns Boolean
#TryRuntimeConvert(string, Type, object?)
public static bool TryRuntimeConvert(string input, Type type, out object? value)Parameters
inputstringtypeTypevalueobject
Returns Boolean
Generated from Yarn Spinner for Unity 3.3.