Class EventHandlerUnitGenerator<TUnit, TArgs> | Bolt Visual Scripting | 1.4.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class EventHandlerUnitGenerator<TUnit, TArgs>

    Inheritance
    Object
    UnitGenerator<TUnit>
    EventHandlerUnitGenerator<TUnit, TArgs>
    ApplicationEventUnitGenerator<TUnit, TArgs>
    ComponentEventUnitGenerator<TUnit, TArgs>
    GameObjectEventUnitGenerator<TUnit, TArgs>
    ManualEventUnitGenerator<TUnit, TArgs>
    Inherited Members
    UnitGenerator<TUnit>.Alias(IMemberGeneration, String)
    UnitGenerator<TUnit>.camelName
    UnitGenerator<TUnit>.pascalName
    UnitGenerator<TUnit>.unit
    UnitGenerator<TUnit>.IGenerator.target
    UnitGenerator<TUnit>.IUnitGenerator.target
    UnitGenerator<TUnit>.GenerateConstructorStatements(ConstructorGeneration)
    UnitGenerator<TUnit>.DeclareControlInput(ControlInput, Func<MethodGeneration, IEnumerable<CodeStatement>>, Func<MethodGeneration, IEnumerable<CodeStatement>>)
    UnitGenerator<TUnit>.DeclareControlInput(ControlInput, Func<MethodGeneration, IEnumerable<CodeStatement>>, ControlOutput)
    UnitGenerator<TUnit>.DeclareValueOutput(ValueOutput, Func<MethodGeneration, CodeExpression>)
    UnitGenerator<TUnit>.DeclareValueOutput(ValueOutput, Func<MethodGeneration, IEnumerable<CodeStatement>>, Func<MethodGeneration, CodeExpression>)
    UnitGenerator<TUnit>.GenerateControlInputBody(MethodGeneration, ControlInput)
    UnitGenerator<TUnit>.GenerateControlInputSuccessor(MethodGeneration, ControlInput)
    UnitGenerator<TUnit>.GenerateValueOutputInit(MethodGeneration, ValueOutput)
    UnitGenerator<TUnit>.GenerateValueOutputExpression(MethodGeneration, ValueOutput)
    Namespace: Ludiq.Bolt
    Syntax
    public abstract class EventHandlerUnitGenerator<TUnit, TArgs> : UnitGenerator<TUnit>, IBehaviourUnitGenerator, IUnitGenerator, IGenerator where TUnit : EventHandlerUnit<TArgs>
    Type Parameters
    Name Description
    TUnit
    TArgs

    Constructors

    EventHandlerUnitGenerator(TUnit)

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

    Properties

    argsParameterAlias

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

    argsParameterName

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

    argsParameterPort

    Declaration
    protected virtual ValueOutput argsParameterPort { get; }
    Property Value
    Type Description
    ValueOutput

    hasArgs

    Declaration
    protected virtual bool hasArgs { get; }
    Property Value
    Type Description
    Boolean

    hookID

    Declaration
    protected EventHookID hookID { get; }
    Property Value
    Type Description
    EventHookID

    invokeMethodName

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

    Methods

    DeclareArgumentPort(ValueOutput)

    Declaration
    protected void DeclareArgumentPort(ValueOutput argument)
    Parameters
    Type Name Description
    ValueOutput argument

    DeclareArgumentPort(ValueOutput, Func<MethodGeneration, CodeVariableReferenceExpression, CodeExpression>)

    Declaration
    protected void DeclareArgumentPort(ValueOutput argument, Func<MethodGeneration, CodeVariableReferenceExpression, CodeExpression> initExpression)
    Parameters
    Type Name Description
    ValueOutput argument
    Func<MethodGeneration, CodeVariableReferenceExpression, CodeExpression> initExpression

    DeclareArgumentPort(ValueOutput, Func<CodeVariableReferenceExpression, CodeExpression>)

    Declaration
    protected void DeclareArgumentPort(ValueOutput argument, Func<CodeVariableReferenceExpression, CodeExpression> initExpression)
    Parameters
    Type Name Description
    ValueOutput argument
    Func<CodeVariableReferenceExpression, CodeExpression> initExpression

    DeclareMembers(ClassGeneration)

    Declaration
    public override void DeclareMembers(ClassGeneration class)
    Parameters
    Type Name Description
    ClassGeneration class
    Overrides
    Ludiq.Bolt.UnitGenerator<TUnit>.DeclareMembers(Ludiq.Bolt.ClassGeneration)
    Implements
    IUnitGenerator.DeclareMembers(ClassGeneration)

    DeclarePorts()

    Declaration
    public override void DeclarePorts()
    Overrides
    Ludiq.Bolt.UnitGenerator<TUnit>.DeclarePorts()
    Implements
    IUnitGenerator.DeclarePorts()

    GenerateActivateStatements(MethodGeneration)

    Declaration
    public virtual IEnumerable<CodeStatement> GenerateActivateStatements(MethodGeneration method)
    Parameters
    Type Name Description
    MethodGeneration method
    Returns
    Type Description
    IEnumerable<CodeStatement>

    GenerateArgumentDeclarations(MethodGeneration)

    Declaration
    protected virtual IEnumerable<CodeStatement> GenerateArgumentDeclarations(MethodGeneration method)
    Parameters
    Type Name Description
    MethodGeneration method
    Returns
    Type Description
    IEnumerable<CodeStatement>

    GenerateArgumentExpression(MethodGeneration, ValueOutput)

    Declaration
    protected CodeExpression GenerateArgumentExpression(MethodGeneration method, ValueOutput argument)
    Parameters
    Type Name Description
    MethodGeneration method
    ValueOutput argument
    Returns
    Type Description
    CodeExpression

    GenerateDeactivateStatements(MethodGeneration)

    Declaration
    public IEnumerable<CodeStatement> GenerateDeactivateStatements(MethodGeneration method)
    Parameters
    Type Name Description
    MethodGeneration method
    Returns
    Type Description
    IEnumerable<CodeStatement>

    GenerateEventHookTargetExpression(MethodGeneration)

    Declaration
    protected abstract CodeExpression GenerateEventHookTargetExpression(MethodGeneration method)
    Parameters
    Type Name Description
    MethodGeneration method
    Returns
    Type Description
    CodeExpression

    GenerateHandlerStatements(MethodGeneration)

    Declaration
    protected virtual IEnumerable<CodeStatement> GenerateHandlerStatements(MethodGeneration method)
    Parameters
    Type Name Description
    MethodGeneration method
    Returns
    Type Description
    IEnumerable<CodeStatement>

    HandlerFieldAlias(IMemberGeneration)

    Declaration
    protected GraphElementMemberAlias HandlerFieldAlias(IMemberGeneration generation)
    Parameters
    Type Name Description
    IMemberGeneration generation
    Returns
    Type Description
    GraphElementMemberAlias

    HookFieldAlias(IMemberGeneration)

    Declaration
    protected GraphElementMemberAlias HookFieldAlias(IMemberGeneration generation)
    Parameters
    Type Name Description
    IMemberGeneration generation
    Returns
    Type Description
    GraphElementMemberAlias

    InvokeMethodAlias(IMemberGeneration)

    Declaration
    protected GraphElementMemberAlias InvokeMethodAlias(IMemberGeneration generation)
    Parameters
    Type Name Description
    IMemberGeneration generation
    Returns
    Type Description
    GraphElementMemberAlias

    Extension Methods

    XDescriptorProvider.Descriptor(Object)
    XDescriptorProvider.Descriptor<TDescriptor>(Object)
    LiteralUtility.ToLiteralString(Object)
    LiteralUtility.ToLiteralStringOrDefault(Object)
    LiteralUtility.TryToLiteralString(Object, out String)
    XFilterProvider.Filter(Object)
    XFilterProvider.Filter<TFilter>(Object)
    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 OdinSerializer.SerializationData, DataFormat)
    LinqUtility.Yield<T>(T)
    UnityObjectUtility.IsUnityNull(Object)
    UnityObjectUtility.UnityNullCoalesce(Object, Object)
    UnityObjectUtility.ToSafeString(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 Copyright © 2020 Unity Technologies
    Generated by DocFX