All pages
Powered by GitBook
1 of 50

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

AddCommandHandler(string,MethodInfo)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler(string commandName, MethodInfo methodInfo);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4>(string commandName, System.Func<T1, T2, T3, T4, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

The method that will be invoked when the command is called.

string commandName

The name of the command.

handler

The CommandHandler that will be invoked when the command is called.

Parameters

MethodInfo methodInfo

AddCommandHandler(string,System.Action<T1>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1>(string commandName, System.Action<T1> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

string commandName

The name of the command.

Action<T1> handler

The that will be invoked when the command is called.

Parameters

CommandHandler

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddFunction(string,System.Func<TResult>)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddFunction(string,Delegate)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

RemoveCommandHandler(string)

Method in

Removes a command handler.

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

Func<TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

Name
Description

TResult

The type of the value that the function should return.

  • Library: A collection of functions that can be called from Yarn programs.

Summary

Remarks

Parameters

IActionRegistration

Type Parameters

See Also

Delegate implementation

The System.Delegate that should be invoked when this function is called.

string name

  • Library: A collection of functions that can be called from Yarn programs.

Summary

Remarks

Parameters

IActionRegistration

See Also

void RemoveCommandHandler(string commandName);

string commandName

The name of the command to remove.

Summary

Parameters

IActionRegistration
void AddFunction<TResult>(string name, System.Func<TResult> implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>
void AddFunction(string name, Delegate implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>
Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5>(string commandName, System.Func<T1, T2, T3, T4, T5, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1>(string commandName, System.Func<T1, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, IEnumerator>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, IEnumerator> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerator>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerator> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Action)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler(string commandName, System.Action handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,Delegate)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler(string commandName, Delegate handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddFunction(string,System.Func<T1, T2, T3, TResult>)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, T3, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, Coroutine>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, Coroutine>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, IEnumerator> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerator> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Action handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Delegate handler

The CommandHandler that will be invoked when the command is called.

Parameters

CommandHandler

Func<T1, T2, T3, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

Name
Description

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

  • Library: A collection of functions that can be called from Yarn programs.

void AddFunction<T1, T2, T3, TResult>(string name, System.Func<T1, T2, T3, TResult> implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>

Summary

Remarks

Parameters

IActionRegistration

Type Parameters

See Also

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2>(string commandName, System.Func<T1, T2, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1>(string commandName, System.Func<T1, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3>(string commandName, System.Func<T1, T2, T3, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, Coroutine> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2>(string commandName, System.Func<T1, T2, Coroutine> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5>(string commandName, System.Action<T1, T2, T3, T4, T5> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4>(string commandName, System.Func<T1, T2, T3, T4, IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, Coroutine> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5>(string commandName, System.Func<T1, T2, T3, T4, T5, Coroutine> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, T3, T4, T5, T6, TResult>(string name, System.Func<T1, T2, T3, T4, T5, T6, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3>(string commandName, System.Func<T1, T2, T3, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Action<T1, T2>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2>(string commandName, System.Action<T1, T2> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, Coroutine>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, Coroutine> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

AddFunction(string,System.Func<T1, T2, T3, T4, T5, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, T3, T4, T5, TResult>(string name, System.Func<T1, T2, T3, T4, T5, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7>)

Method in IActionRegistration

Summary

Adds a command handler. Dialogue will pause execution after the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7>(string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7> handler);

Remarks

When this command handler has been added, it can be called from your Yarn scripts like so:

<<commandName param1 param2>>

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the DialogueRunner will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the DialogueRunner will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

Name
Description

IActionRegistration

Interface in

Name

AddFunction(string,System.Func<T1, T2, T3, T4, TResult>)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Action<T1, T2, T3>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

RemoveFunction(string)

Method in

Remove a registered function.

After a function has been removed, it cannot be called from Yarn scripts.

Name
Description

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<Coroutine>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddFunction(string,System.Func<T1, TResult>)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

AddCommandHandler(string,System.Func<IEnumerator>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, T2, T3, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Action<T1, T2> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, Coroutine> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator> handler

The CommandHandler that will be invoked when the command is called.

Parameters

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5, T6, T7> handler

The CommandHandler that will be invoked when the command is called.

Parameters

CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

T6

The type of the sixth parameter to the function.

Func<T1, T2, T3, T4, T5, T6, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

Func<T1, T2, T3, T4, T5, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

T2

  • IActionRegistration.AddFunction(string,System.Func<TResult>): Add a new function that returns a value, so that it can be called from Yarn scripts.

string name

Summary

Remarks

Parameters

IActionRegistration

The name of the function to remove.

See Also

Func<T1, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

Name
Description

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

  • Library: A collection of functions that can be called from Yarn programs.

Summary

Remarks

Parameters

IActionRegistration

Type Parameters

See Also

void RemoveFunction(string name);
void AddFunction<T1, TResult>(string name, System.Func<T1, TResult> implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>
Description

Adds a command handler. Dialogue will pause execution after the command is called.

Adds a command handler. Dialogue will pause execution after the command is called.

Adds a command handler. Dialogue will pause execution after the command is called.

Adds a command handler. Dialogue will pause execution after the command is called.

public interface IActionRegistration

Summary

Methods

Yarn.Unity

Func<T1, T2, T3, T4, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

Name
Description

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

  • Library: A collection of functions that can be called from Yarn programs.

void AddFunction<T1, T2, T3, T4, TResult>(string name, System.Func<T1, T2, T3, T4, TResult> implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>

Summary

Remarks

Parameters

IActionRegistration

Type Parameters

See Also

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5, T6> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6>(string commandName, System.Action<T1, T2, T3, T4, T5, T6> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3>(string commandName, System.Action<T1, T2, T3> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(string commandName, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<Coroutine> handler

The that will be invoked when the command is called.

void AddCommandHandler(string commandName, System.Func<Coroutine> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3, T4, T5, T6, T7, T8> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4, T5, T6, T7, T8>(string commandName, System.Action<T1, T2, T3, T4, T5, T6, T7, T8> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

Name
Description

string commandName

The name of the command.

Func<IEnumerator> handler

The that will be invoked when the command is called.

void AddCommandHandler(string commandName, System.Func<IEnumerator> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(string name, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, T3, T4, T5, T6, T7, TResult>(string name, System.Func<T1, T2, T3, T4, T5, T6, T7, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

AddFunction(string,System.Func<T1, T2, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, TResult>(string name, System.Func<T1, T2, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)

Method in

Add a new function that returns a value, so that it can be called from Yarn scripts.

When this function has been registered, it can be called from your Yarn scripts like so:

The call command can also be used to invoke the function:

Name
Description

AddCommandHandler(string,System.Action<T1, T2, T3, T4>)

Method in

Adds a command handler. Dialogue will pause execution after the command is called.

When this command handler has been added, it can be called from your Yarn scripts like so:

If handler is a method that returns a UnityEngine.Coroutine, when the command is run, the will wait for the returned coroutine to stop before delivering any more content.

If handler is a method that returns an System.Collections.IEnumerator, when the command is run, the will start a coroutine using that method and wait for that coroutine to stop before delivering any more content.

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

T6

The type of the sixth parameter to the function.

T7

The type of the seventh parameter to the function.

T8

The type of the eighth parameter to the function.

T9

The type of the ninth parameter to the function.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

T6

The type of the sixth parameter to the function.

T7

The type of the seventh parameter to the function.

Func<T1, T2, T3, T4, T5, T6, T7, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

AddCommandHandler(string,MethodInfo)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, Coroutine>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, IEnumerator>)

Adds a command handler. Dialogue will pause execution after the command is called.

AddCommandHandler(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Coroutine>)

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.

AddFunction(string,System.Func)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>)

Add a new function that returns a value, so that it can be called from Yarn scripts.

RemoveCommandHandler(string)

Removes a command handler.

RemoveFunction(string)

Remove a registered function.

AddCommandHandler(string,System.Action)
AddCommandHandler(string,Delegate)
AddCommandHandler(string,System.Func)
AddCommandHandler(string,System.Func)
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler
CommandHandler

The type of the second parameter to the function.

Func<T1, T2, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

T2

Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

Name
Description

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

  • Library: A collection of functions that can be called from Yarn programs.

void AddFunction<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(string name, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> implementation);
<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>
<<call myFunction(1, 2)>>

Summary

Remarks

Parameters

IActionRegistration

Type Parameters

See Also

Name
Description

string commandName

The name of the command.

Action<T1, T2, T3, T4> handler

The that will be invoked when the command is called.

void AddCommandHandler<T1, T2, T3, T4>(string commandName, System.Action<T1, T2, T3, T4> handler);
<<commandName param1 param2>>

Summary

Remarks

IActionRegistration
DialogueRunner
DialogueRunner

Parameters

AddFunction(string,System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>)

Method in IActionRegistration

Summary

Add a new function that returns a value, so that it can be called from Yarn scripts.

void AddFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>(string name, System.Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> implementation);

Remarks

When this function has been registered, it can be called from your Yarn scripts like so:

<<if myFunction(1, 2) == true>>
myFunction returned true!
<<endif>>

The call command can also be used to invoke the function:

<<call myFunction(1, 2)>>

Parameters

Name
Description
Name
Description
  • : A collection of functions that can be called from Yarn programs.

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

T6

The type of the sixth parameter to the function.

T7

The type of the seventh parameter to the function.

T8

The type of the eighth parameter to the function.

CommandHandler

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> implementation

The System.Delegate that should be invoked when this function is called.

string name

TResult

The type of the value that the function should return.

T1

The type of the first parameter to the function.

Type Parameters

See Also

Library

T2

The type of the second parameter to the function.

T3

The type of the third parameter to the function.

T4

The type of the fourth parameter to the function.

T5

The type of the fifth parameter to the function.

T6

The type of the sixth parameter to the function.

T7

The type of the seventh parameter to the function.

T8

The type of the eighth parameter to the function.

T9

The type of the ninth parameter to the function.

T10

The type of the tenth parameter to the function.