docs.unity3d.com
    Show / Hide Table of Contents

    Class StateGenerator<TState>

    Inheritance
    Object
    StateGenerator<TState>
    AnyStateGenerator
    EmbedStateGenerator<TEmbedState>
    Namespace: Ludiq.Bolt
    Syntax
    public abstract class StateGenerator<TState> : IStateGenerator, IBehaviourGenerator, IGenerator where TState : class, IState
    Type Parameters
    Name Description
    TState

    Constructors

    StateGenerator(TState)

    Declaration
    protected StateGenerator(TState state)
    Parameters
    Type Name Description
    TState state

    Properties

    camelName

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

    fieldAlias

    Declaration
    protected object fieldAlias { get; }
    Property Value
    Type Description
    Object

    pascalName

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

    state

    Declaration
    public TState state { get; }
    Property Value
    Type Description
    TState

    Methods

    DeclareMembers(ClassGeneration)

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

    GenerateActivateStatements(MethodGeneration)

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

    GenerateConstructorStatements(ConstructorGeneration)

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

    GenerateDeactivateStatements(MethodGeneration)

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

    GenerateStateField(FieldGeneration)

    Declaration
    protected virtual CodeFieldMember GenerateStateField(FieldGeneration field)
    Parameters
    Type Name Description
    FieldGeneration field
    Returns
    Type Description
    CodeFieldMember

    GenerateStateInitializer(ConstructorGeneration)

    Declaration
    protected abstract CodeExpression GenerateStateInitializer(ConstructorGeneration constructor)
    Parameters
    Type Name Description
    ConstructorGeneration constructor
    Returns
    Type Description
    CodeExpression

    Explicit Interface Implementations

    IGenerator.target

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

    IStateGenerator.target

    Declaration
    IState IStateGenerator.target { get; }
    Returns
    Type Description
    IState
    Implements
    IStateGenerator.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