Search Results for

    Show / Hide Table of Contents

    Interface IStateMachine<E>

    Abstract state machine to manage a set of given states and transitions.

    Namespace: nickmaltbie.StateMachineUnity
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IStateMachine<E>
    Type Parameters
    Name Description
    E

    Properties

    CurrentState

    Current state of the state machine.

    Declaration
    E CurrentState { get; }
    Property Value
    Type Description
    E

    Methods

    RaiseEvent(IEvent)

    Raise an event to the current state machine.

    Declaration
    void RaiseEvent(IEvent evt)
    Parameters
    Type Name Description
    IEvent evt

    Event to send to the state machine.

    SetStateQuiet(Type)

    Internal method to set the current state of the state machine without invoking the OnEnterStateAttribute or OnExitStateAttribute

    Declaration
    void SetStateQuiet(Type newState)
    Parameters
    Type Name Description
    Type newState

    New state to set for the state machine.

    In This Article
    Back to top State Machine Unity Documentation