docs.unity3d.com
    Show / Hide Table of Contents

    Class UnitDefinitionUtility

    Inheritance
    Object
    UnitDefinitionUtility
    Namespace: Ludiq.Bolt
    Syntax
    public static class UnitDefinitionUtility

    Methods

    DefineAssignment(IUnit, ControlInput, ValueOutput)

    Triggering the source may assign the destination value on the flow.

    Declaration
    public static void DefineAssignment(this IUnit unit, ControlInput source, ValueOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ControlInput source
    ValueOutput destination

    DefineAssignment(IUnit, ValueOutput, ValueOutput)

    Getting the value of the source may assign the value of the destination.

    Declaration
    public static void DefineAssignment(this IUnit unit, ValueOutput source, ValueOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ValueOutput source
    ValueOutput destination

    DefineControlInput(IUnit, ControlInputDefinition, Func<Flow, ControlOutput>, Func<Flow, IEnumerator>)

    Declaration
    public static ControlInput DefineControlInput(this IUnit unit, ControlInputDefinition definition, Func<Flow, ControlOutput> action, Func<Flow, IEnumerator> coroutineAction)
    Parameters
    Type Name Description
    IUnit unit
    ControlInputDefinition definition
    Func<Flow, ControlOutput> action
    Func<Flow, IEnumerator> coroutineAction
    Returns
    Type Description
    ControlInput

    DefineControlInput(IUnit, String, Func<Flow, ControlOutput>)

    Declaration
    public static ControlInput DefineControlInput(this IUnit unit, string key, Func<Flow, ControlOutput> action)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Func<Flow, ControlOutput> action
    Returns
    Type Description
    ControlInput

    DefineControlInputCoroutine(IUnit, String, Func<Flow, ControlOutput>, Func<Flow, IEnumerator>)

    Declaration
    public static ControlInput DefineControlInputCoroutine(this IUnit unit, string key, Func<Flow, ControlOutput> action, Func<Flow, IEnumerator> coroutineAction)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Func<Flow, ControlOutput> action
    Func<Flow, IEnumerator> coroutineAction
    Returns
    Type Description
    ControlInput

    DefineControlInputCoroutine(IUnit, String, Func<Flow, IEnumerator>)

    Declaration
    public static ControlInput DefineControlInputCoroutine(this IUnit unit, string key, Func<Flow, IEnumerator> coroutineAction)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Func<Flow, IEnumerator> coroutineAction
    Returns
    Type Description
    ControlInput

    DefineControlOutput(IUnit, ControlOutputDefinition)

    Declaration
    public static ControlOutput DefineControlOutput(this IUnit unit, ControlOutputDefinition definition)
    Parameters
    Type Name Description
    IUnit unit
    ControlOutputDefinition definition
    Returns
    Type Description
    ControlOutput

    DefineControlOutput(IUnit, String)

    Declaration
    public static ControlOutput DefineControlOutput(this IUnit unit, string key)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Returns
    Type Description
    ControlOutput

    DefineDelegation(IUnit, ValueOutput, ControlOutput)

    Invoking the value of the source may trigger the destination.

    Declaration
    public static void DefineDelegation(this IUnit unit, ValueOutput source, ControlOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ValueOutput source
    ControlOutput destination

    DefineRequirement(IUnit, ValueInput, ControlInput)

    Triggering the destination may fetch the source value.

    Declaration
    public static void DefineRequirement(this IUnit unit, ValueInput source, ControlInput destination)
    Parameters
    Type Name Description
    IUnit unit
    ValueInput source
    ControlInput destination

    DefineRequirement(IUnit, ValueInput, ValueOutput)

    Getting the value of the destination may fetch the value of the source.

    Declaration
    public static void DefineRequirement(this IUnit unit, ValueInput source, ValueOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ValueInput source
    ValueOutput destination

    DefineSuccession(IUnit, ControlInput, ControlOutput)

    Triggering the source may trigger the destination.

    Declaration
    public static void DefineSuccession(this IUnit unit, ControlInput source, ControlOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ControlInput source
    ControlOutput destination

    DefineSuccession(IUnit, ControlOutput, ControlOutput)

    Triggering the source may trigger the destination.

    Declaration
    public static void DefineSuccession(this IUnit unit, ControlOutput source, ControlOutput destination)
    Parameters
    Type Name Description
    IUnit unit
    ControlOutput source
    ControlOutput destination

    DefineValueInput(IUnit, HybridType, String)

    Declaration
    public static ValueInput DefineValueInput(this IUnit unit, HybridType type, string key)
    Parameters
    Type Name Description
    IUnit unit
    HybridType type
    String key
    Returns
    Type Description
    ValueInput

    DefineValueInput(IUnit, ValueInputDefinition)

    Declaration
    public static ValueInput DefineValueInput(this IUnit unit, ValueInputDefinition definition)
    Parameters
    Type Name Description
    IUnit unit
    ValueInputDefinition definition
    Returns
    Type Description
    ValueInput

    DefineValueInput<T>(IUnit, String)

    Declaration
    public static ValueInput DefineValueInput<T>(this IUnit unit, string key)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Returns
    Type Description
    ValueInput
    Type Parameters
    Name Description
    T

    DefineValueInput<T>(IUnit, String, T)

    Declaration
    public static ValueInput DefineValueInput<T>(this IUnit unit, string key, T default)
    Parameters
    Type Name Description
    IUnit unit
    String key
    T default
    Returns
    Type Description
    ValueInput
    Type Parameters
    Name Description
    T

    DefineValueOutput(IUnit, HybridType, String)

    Declaration
    public static ValueOutput DefineValueOutput(this IUnit unit, HybridType type, string key)
    Parameters
    Type Name Description
    IUnit unit
    HybridType type
    String key
    Returns
    Type Description
    ValueOutput

    DefineValueOutput(IUnit, HybridType, String, Func<Flow, Object>)

    Declaration
    public static ValueOutput DefineValueOutput(this IUnit unit, HybridType type, string key, Func<Flow, object> getValue)
    Parameters
    Type Name Description
    IUnit unit
    HybridType type
    String key
    Func<Flow, Object> getValue
    Returns
    Type Description
    ValueOutput

    DefineValueOutput(IUnit, ValueOutputDefinition)

    Declaration
    public static ValueOutput DefineValueOutput(this IUnit unit, ValueOutputDefinition definition)
    Parameters
    Type Name Description
    IUnit unit
    ValueOutputDefinition definition
    Returns
    Type Description
    ValueOutput

    DefineValueOutput(IUnit, ValueOutputDefinition, Func<Flow, Object>)

    Declaration
    public static ValueOutput DefineValueOutput(this IUnit unit, ValueOutputDefinition definition, Func<Flow, object> getValue)
    Parameters
    Type Name Description
    IUnit unit
    ValueOutputDefinition definition
    Func<Flow, Object> getValue
    Returns
    Type Description
    ValueOutput

    DefineValueOutput<T>(IUnit, String)

    Declaration
    public static ValueOutput DefineValueOutput<T>(this IUnit unit, string key)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Returns
    Type Description
    ValueOutput
    Type Parameters
    Name Description
    T

    DefineValueOutput<T>(IUnit, String, Func<Flow, T>)

    Declaration
    public static ValueOutput DefineValueOutput<T>(this IUnit unit, string key, Func<Flow, T> getValue)
    Parameters
    Type Name Description
    IUnit unit
    String key
    Func<Flow, T> getValue
    Returns
    Type Description
    ValueOutput
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX