docs.unity3d.com
    Show / Hide Table of Contents

    Class UnitGenerator<TUnit>

    Inheritance
    Object
    UnitGenerator<TUnit>
    AndGenerator
    AssignGenerator
    BinaryOperatorUnitGenerator
    BoltMemberUnitGenerator<T>
    ConvertUnitGenerator
    CooldownGenerator
    CoroutineUnitGenerator
    CreateStructGenerator
    DelegateUnitGenerator
    EventHandlerUnitGenerator<TUnit, TArgs>
    ExclusiveOrGenerator
    ExposeGenerator
    FlowFunctionEntryGenerator
    FlowFunctionExitGenerator
    FlowGraphVariableUnitGenerator<T>
    FlowMacroInputGenerator
    FlowMacroOutputGenerator
    ForEachGenerator
    ForGenerator
    IsGenerator
    LiteralUnitGenerator
    MemberEventGenerator
    MemberUnitGenerator<TMemberUnit>
    NotGenerator
    NullCheckGenerator
    NullCoalesceGenerator
    NullGenerator
    OnceGenerator
    OrGenerator
    SelectOnEnumGenerator
    SelectOnFlowGenerator
    SelectUnitGenerator
    SelectUnitGenerator<TUnit, TSelector>
    SelfGenerator
    SequenceGenerator
    SliderUnitGenerator
    SwitchUnitGenerator<TUnit, TSelector>
    ThrowGenerator
    TimerGenerator
    ToggleFlowGenerator
    ToggleValueGenerator
    TriggerStateTransitionGenerator
    TryCatchGenerator
    TypedComparisonGenerator
    UnaryOperatorUnitGenerator
    UnitControlPortProxyGenerator
    UnitValuePortProxyGenerator
    WaitForCoroutineGenerator
    WaitForEndOfFrameUnitGenerator
    WaitForFlowGenerator
    WaitForInstructionGenerator
    WaitForNextFrameUnitGenerator
    WaitForSecondsUnitGenerator
    WaitUntilUnitGenerator
    WaitWhileUnitGenerator
    WhileGenerator
    Namespace: Ludiq.Bolt
    Syntax
    public abstract class UnitGenerator<TUnit> : IUnitGenerator, IGenerator where TUnit : class, IUnit
    Type Parameters
    Name Description
    TUnit

    Constructors

    UnitGenerator(TUnit)

    Declaration
    protected UnitGenerator(TUnit unit)
    Parameters
    Type Name Description
    TUnit unit

    Properties

    camelName

    Declaration
    protected string camelName { get; }
    Property Value
    Type Description
    String

    pascalName

    Declaration
    protected string pascalName { get; }
    Property Value
    Type Description
    String

    unit

    Declaration
    public TUnit unit { get; }
    Property Value
    Type Description
    TUnit

    Methods

    Alias(IMemberGeneration, String)

    Declaration
    protected GraphElementMemberAlias Alias(IMemberGeneration generation, string tag)
    Parameters
    Type Name Description
    IMemberGeneration generation
    String tag
    Returns
    Type Description
    GraphElementMemberAlias

    DeclareControlInput(ControlInput, Func<MethodGeneration, IEnumerable<CodeStatement>>, ControlOutput)

    Declaration
    protected void DeclareControlInput(ControlInput controlInput, Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator, ControlOutput successorPort)
    Parameters
    Type Name Description
    ControlInput controlInput
    Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator
    ControlOutput successorPort

    DeclareControlInput(ControlInput, Func<MethodGeneration, IEnumerable<CodeStatement>>, Func<MethodGeneration, IEnumerable<CodeStatement>>)

    Declaration
    protected void DeclareControlInput(ControlInput controlInput, Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator, Func<MethodGeneration, IEnumerable<CodeStatement>> successorGenerator = null)
    Parameters
    Type Name Description
    ControlInput controlInput
    Func<MethodGeneration, IEnumerable<CodeStatement>> bodyGenerator
    Func<MethodGeneration, IEnumerable<CodeStatement>> successorGenerator

    DeclareMembers(ClassGeneration)

    Declaration
    public virtual void DeclareMembers(ClassGeneration class)
    Parameters
    Type Name Description
    ClassGeneration class
    Implements
    IUnitGenerator.DeclareMembers(ClassGeneration)

    DeclarePorts()

    Declaration
    public virtual void DeclarePorts()
    Implements
    IUnitGenerator.DeclarePorts()

    DeclareValueOutput(ValueOutput, Func<MethodGeneration, CodeExpression>)

    Declaration
    protected void DeclareValueOutput(ValueOutput valueOutput, Func<MethodGeneration, CodeExpression> expressionGenerator)
    Parameters
    Type Name Description
    ValueOutput valueOutput
    Func<MethodGeneration, CodeExpression> expressionGenerator

    DeclareValueOutput(ValueOutput, Func<MethodGeneration, IEnumerable<CodeStatement>>, Func<MethodGeneration, CodeExpression>)

    Declaration
    protected void DeclareValueOutput(ValueOutput valueOutput, Func<MethodGeneration, IEnumerable<CodeStatement>> initGenerator, Func<MethodGeneration, CodeExpression> expressionGenerator)
    Parameters
    Type Name Description
    ValueOutput valueOutput
    Func<MethodGeneration, IEnumerable<CodeStatement>> initGenerator
    Func<MethodGeneration, CodeExpression> expressionGenerator

    GenerateConstructorStatements(ConstructorGeneration)

    Declaration
    public virtual IEnumerable<CodeStatement> GenerateConstructorStatements(ConstructorGeneration method)
    Parameters
    Type Name Description
    ConstructorGeneration method
    Returns
    Type Description
    IEnumerable<CodeStatement>
    Implements
    IUnitGenerator.GenerateConstructorStatements(ConstructorGeneration)

    GenerateControlInputBody(MethodGeneration, ControlInput)

    Declaration
    public IEnumerable<CodeStatement> GenerateControlInputBody(MethodGeneration method, ControlInput controlInput)
    Parameters
    Type Name Description
    MethodGeneration method
    ControlInput controlInput
    Returns
    Type Description
    IEnumerable<CodeStatement>
    Implements
    IUnitGenerator.GenerateControlInputBody(MethodGeneration, ControlInput)

    GenerateControlInputSuccessor(MethodGeneration, ControlInput)

    Declaration
    public IEnumerable<CodeStatement> GenerateControlInputSuccessor(MethodGeneration method, ControlInput controlInput)
    Parameters
    Type Name Description
    MethodGeneration method
    ControlInput controlInput
    Returns
    Type Description
    IEnumerable<CodeStatement>
    Implements
    IUnitGenerator.GenerateControlInputSuccessor(MethodGeneration, ControlInput)

    GenerateValueOutputExpression(MethodGeneration, ValueOutput)

    Declaration
    public CodeExpression GenerateValueOutputExpression(MethodGeneration method, ValueOutput valueOutput)
    Parameters
    Type Name Description
    MethodGeneration method
    ValueOutput valueOutput
    Returns
    Type Description
    CodeExpression
    Implements
    IUnitGenerator.GenerateValueOutputExpression(MethodGeneration, ValueOutput)

    GenerateValueOutputInit(MethodGeneration, ValueOutput)

    Declaration
    public IEnumerable<CodeStatement> GenerateValueOutputInit(MethodGeneration method, ValueOutput valueOutput)
    Parameters
    Type Name Description
    MethodGeneration method
    ValueOutput valueOutput
    Returns
    Type Description
    IEnumerable<CodeStatement>
    Implements
    IUnitGenerator.GenerateValueOutputInit(MethodGeneration, ValueOutput)

    Explicit Interface Implementations

    IGenerator.target

    Declaration
    object IGenerator.target { get; }
    Returns
    Type Description
    Object
    Implements
    IGenerator.target

    IUnitGenerator.target

    Declaration
    IUnit IUnitGenerator.target { get; }
    Returns
    Type Description
    IUnit
    Implements
    IUnitGenerator.target

    Extension Methods

    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    LiteralUtility.ToLiteralString(Object)
    LiteralUtility.ToLiteralStringOrDefault(Object)
    LiteralUtility.TryToLiteralString(Object, out String)
    Cloning.Clone(Object, ICloner, Boolean)
    Cloning.Clone(Object, ICloner, Boolean, out Dictionary<Object, Object>)
    Cloning.Clone<T>(T, ICloner, Boolean)
    Cloning.Clone<T>(T, ICloner, Boolean, out Dictionary<Object, Object>)
    Cloning.CloneViaSerializationPolicy(Object)
    Cloning.CloneViaSerializationPolicy(Object, out Dictionary<Object, Object>)
    Cloning.CloneViaSerializationPolicy<T>(T)
    Cloning.CloneViaSerializationPolicy<T>(T, out Dictionary<Object, Object>)
    Cloning.CloneInto(Object, ref Object, ICloner, Boolean)
    Cloning.CloneInto(Object, ref Object, ICloner, Boolean, out Dictionary<Object, Object>)
    Cloning.CloneInto<T>(T, ref Object, ICloner, Boolean)
    Cloning.CloneInto<T>(T, ref Object, ICloner, Boolean, out Dictionary<Object, Object>)
    Cloning.CloneIntoViaSerializationPolicy(Object, ref Object)
    Cloning.CloneIntoViaSerializationPolicy(Object, ref Object, out Dictionary<Object, Object>)
    Cloning.CloneIntoViaSerializationPolicy<T>(T, ref Object)
    Cloning.CloneIntoViaSerializationPolicy<T>(T, ref Object, out Dictionary<Object, Object>)
    Cloning.CloneValueType(Object)
    ConversionUtility.ConvertTo<TSource>(TSource, Type)
    ConversionUtility.IsLateConvertibleTo(Object, Type, Boolean)
    ConversionUtility.IsLateConvertibleTo<T>(Object, Boolean)
    ConversionUtility.LateConvertTo(Object, Type)
    ConversionUtility.LateConvertTo<T>(Object)
    ConversionUtility.TryLateConvertTo(Object, Type, out Object, Boolean)
    ConversionUtility.TryLateConvertTo<T>(Object, out T, Boolean)
    TypeUtility.ToShortString(Object, Int32)
    TypeUtility.CastTo<T>(Object)
    Serialization.FullSerialize(Object, Boolean)
    Serialization.OdinSerialize<T>(T, DataFormat)
    Serialization.OdinSerialize<T>(T, ref SerializationData, DataFormat)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.UnityNullCoalesce(Object, Object)
    UnityObjectUtility.ToSafeString(Object)
    XFilterProvider.Filter(Object)
    XFilterProvider.Filter<TFilter>(Object)
    BoltGenerationUtility.GenerateLiteral(Object, IGeneration)
    XGeneratorProvider.Generator(Object, IGeneration)
    XGeneratorProvider.Generator<TGenerator>(Object, IGeneration)
    XGeneratorProvider.HasGenerator(Object, IGeneration)
    XGeneratorProvider.HasGenerator<TGenerator>(Object, IGeneration)
    XGeneratorProvider.TryGetGenerator(Object, out IGenerator, IGeneration)
    XGeneratorProvider.TryGetGenerator<TGenerator>(Object, IGeneration, out TGenerator)
    HybridConversionUtility.ConvertTo(Object, HybridType, HybridType)
    HybridConversionUtility.IsLateConvertibleTo(Object, HybridType, Boolean)
    HybridConversionUtility.LateConvertTo(Object, HybridType)
    HybridConversionUtility.TryLateConvertTo(Object, HybridType, out Object, Boolean)
    HybridTypeUtility.GetHybridType(Object)
    IsUtility.Is<TO, TC>(TO, out TC)
    PrivateReflectionUsingDynamicExtensions.AsDynamic(Object)
    JsonWriter.ToJson(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023