Chroma Engine

  • Home
  • Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • Chroma
      • Audio
      • AudioSource
      • BoxCollider
      • Camera
      • CircleCollider
      • Color
      • Component
      • Coroutine
      • Coroutine.CoroutineFunction
      • Entity
      • ExecutionOrder
      • Input
      • Input.ConnectionState
      • Input.Gamepad
      • Input.GamepadAxis
      • Input.GamepadButton
      • Input.JoystickHatState
      • Input.Key
      • Input.Mouse
      • Log
      • Mathf
      • ParticleEmitter
      • RuntimeException
      • Scene
      • SpriteRenderer
      • StateMachine<T>
      • Time
      • Transform
      • Vector2
      • Vector3
      • Vector4

    Class StateMachine<T>

    Inheritance
    System.Object
    StateMachine<T>
    Namespace: Chroma
    Assembly: Chroma.Mono.dll
    Syntax
    public class StateMachine<T>
        where T : struct, IConvertible
    Type Parameters
    Name Description
    T

    Constructors

    StateMachine(T)

    Declaration
    public StateMachine(T initial_state)
    Parameters
    Type Name Description
    T initial_state

    Properties

    Current

    Declaration
    public T Current { get; }
    Property Value
    Type Description
    T

    Methods

    Add(T, Action, Coroutine.CoroutineFunction, Action, Action)

    Declaration
    public void Add(T state, Action update, Coroutine.CoroutineFunction coroutine = null, Action begin = null, Action end = null)
    Parameters
    Type Name Description
    T state
    System.Action update
    Coroutine.CoroutineFunction coroutine
    System.Action begin
    System.Action end

    Set(T)

    Declaration
    public void Set(T state)
    Parameters
    Type Name Description
    T state

    Update()

    Declaration
    public void Update()
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾