Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Method in Library
Returns a System.Delegate with a given name.
public Delegate GetFunction(string name)The System.Delegate .
string name
The name of the function to retrieve.
You do not create instances of this class yourself. The Dialogue class creates one of its own, which you can access via the Library property.
Removes a function from the Library.
Gets a value indicating whether this contains a function named name .
Returns a System.Delegate with a given name.
Loads functions from another .
Registers a new function that returns a value, which can be called from a Yarn program.
Dialogue: Co-ordinates the execution of Yarn programs.
public class LibraryRegisters a new function that returns a value, which can be called from a Yarn program.
Registers a new function that returns a value, which can be called from a Yarn program.
Registers a new function that returns a value, which can be called from a Yarn program.
Registers a new function that returns a value, which can be called from a Yarn program.
Registers a new function that returns a value, which can be called from a Yarn program.
Registers a new function that returns a value, which can be called from a Yarn program.
Method in Library
Removes a function from the Library.
public void DeregisterFunction(string name)If no function with the given name is present in the Library, this method does nothing.
string name
The name of the function to remove.
If the other library contains a function with the same name as one in this library, the function in the other library takes precedence.
otherLibrary
The library to import functions from.
public void ImportLibrary(Library otherLibrary)Method in Library
Registers a new function that returns a value, which can be called from a Yarn program.
public void RegisterFunction<T1, T2, T3, T4, TResult>(string name, Func<T1, T2, T3, T4, TResult> implementation)The type of the function's fourth argument.
string name
The name of the function.
System.Func<T1, T2, T3, T4, TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
TResult
The return type of the function.
T1
The type of the function's first argument.
T2
The type of the function's second argument.
T3
The type of the function's third argument.
T4
string name
The name of the function.
System.Func<T1, T2, TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
TResult
The return type of the function.
T1
The type of the function's first argument.
T2
The type of the function's second argument.
public void RegisterFunction<T1, T2, TResult>(string name, Func<T1, T2, TResult> implementation)string name
The name of the function.
System.Func<T1, T2, T3, T4, T5, TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
TResult
The return type of the function.
T1
The type of the function's first argument.
T2
The type of the function's second argument.
T3
The type of the function's third argument.
Method in Library
Registers a new function that returns a value, which can be called from a Yarn program.
public void RegisterFunction<TResult>(string name, Func<TResult> implementation)public void RegisterFunction<T1, T2, T3, T4, T5, TResult>(string name, Func<T1, T2, T3, T4, T5, TResult> implementation)T4
The type of the function's fourth argument.
T5
The type of the function's fifth argument.
string name
The name of the function to look for.
string name
The name of the function.
System.Func<TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
string name
The name of the function.
System.Func<T1, T2, T3, TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
TResult
The return type of the function.
T1
The type of the function's first argument.
T2
The type of the function's second argument.
T3
The type of the function's third argument.
string name
The name of the function.
System.Delegate implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
public void RegisterFunction(string name, Delegate implementation)public void RegisterFunction<T1, T2, T3, TResult>(string name, Func<T1, T2, T3, TResult> implementation)string name
The name of the function.
System.Func<T1, TResult> implementation
The method to be invoked when the function is called.
TResult
The return type of the function.
TResult
The return type of the function.
T1
The type of the function's first argument.
public void RegisterFunction<T1, TResult>(string name, Func<T1, TResult> implementation)