All pages
Powered by GitBook
1 of 7

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Parent

Property in

Gets the parent of this type.

All types have as their ultimate parent type (except for itself.)

public IType Parent { get; }

Summary

Remarks

FunctionType
Any
Any

Name

Property in

Gets the name of this type.

public string Name { get; }

Summary

FunctionType

FunctionType

Class in Yarn

Inherits from System.Object

Summary

A type that represents functions.

public class FunctionType : IType

Remarks

Functions have parameters and a return type, and can be called from script. Instances of this type are created when the host application registers new functions (such as through using the RegisterFunction(string,Delegate) methods or similar.)

Properties

Name
Description

Gets a more verbose description of this type.

Gets the collection of methods that are available on this type.

Gets the name of this type.

Gets the list of the parameter types that this function is called with.

Gets the parent of this type.

Gets the type of value that this function returns.

Description
Methods
Name
Parameters
Parent
ReturnType

ReturnType

Property in

Gets the type of value that this function returns.

public IType ReturnType { get; internal set; }

Summary

FunctionType

Description

Property in

Gets a more verbose description of this type.

public string Description
{
            get; set; }

Summary

FunctionType

Parameters

Property in

Gets the list of the parameter types that this function is called with.

The length of this list also determines the number of parameters this function accepts (also known as the function's arity ).

public List<IType> Parameters { get; };

Summary

Remarks

FunctionType

Methods

Property in

Gets the collection of methods that are available on this type.

public MethodCollection Methods { get };

Summary

FunctionType