Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Class SmStateMachine

    Inheritance
    object
    SmState
    SmStateMachine
    UserToolStateMachine
    UserToolsStateMachineBase
    Implements
    ISmState
    IStateMachine
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Fwt.Core.StateMachines
    Assembly: fwt.core.dll
    Syntax
    public class SmStateMachine : SmState, ISmState, IStateMachine

    Fields

    CurrentState

    Declaration
    public ISmState CurrentState
    Field Value
    Type Description
    ISmState

    SortedStates

    Declaration
    public Dictionary<Type, ISmState> SortedStates
    Field Value
    Type Description
    Dictionary<Type, ISmState>

    States

    Declaration
    public List<ISmState> States
    Field Value
    Type Description
    List<ISmState>

    Methods

    AddState(ISmState)

    Declaration
    public virtual void AddState(ISmState state)
    Parameters
    Type Name Description
    ISmState state

    AddState<TState>(TState)

    Declaration
    public virtual void AddState<TState>(TState state) where TState : ISmState
    Parameters
    Type Name Description
    TState state
    Type Parameters
    Name Description
    TState

    GetState(int)

    Declaration
    public virtual ISmState GetState(int stateIndex)
    Parameters
    Type Name Description
    int stateIndex
    Returns
    Type Description
    ISmState

    GetState(Type)

    Declaration
    public virtual ISmState GetState(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    ISmState

    GetState<TState>(Type)

    Declaration
    public virtual TState GetState<TState>(Type type) where TState : ISmState
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    TState
    Type Parameters
    Name Description
    TState

    PrepareToRun()

    Declaration
    public override void PrepareToRun()
    Overrides
    SmState.PrepareToRun()

    PrepareToStop()

    Declaration
    public override void PrepareToStop()
    Overrides
    SmState.PrepareToStop()

    SwitchState(ISmState)

    Declaration
    public virtual void SwitchState(ISmState newState)
    Parameters
    Type Name Description
    ISmState newState

    SwitchState(int)

    Declaration
    public virtual ISmState SwitchState(int stateIndex)
    Parameters
    Type Name Description
    int stateIndex
    Returns
    Type Description
    ISmState

    SwitchState<TState>()

    Declaration
    public virtual TState SwitchState<TState>() where TState : ISmState
    Returns
    Type Description
    TState
    Type Parameters
    Name Description
    TState

    SwitchState<TState, TContext>(TState, TContext)

    Declaration
    public virtual void SwitchState<TState, TContext>(TState newState, TContext context) where TState : ISmStateWithContext<TContext>
    Parameters
    Type Name Description
    TState newState
    TContext context
    Type Parameters
    Name Description
    TState
    TContext

    SwitchState<TState, TContext>(TContext)

    Declaration
    public virtual TState SwitchState<TState, TContext>(TContext context) where TState : ISmStateWithContext<TContext>
    Parameters
    Type Name Description
    TContext context
    Returns
    Type Description
    TState
    Type Parameters
    Name Description
    TState
    TContext

    Tick()

    Declaration
    public override void Tick()
    Overrides
    SmState.Tick()

    Implements

    ISmState
    IStateMachine

    Extension Methods

    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    HashExtensions.GetHashCode_RefType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX