Table of Contents

Class PromiseHsm<T, THsm, TState, TInputs>

Namespace
MarymoorStudios.Core.Fsm
Assembly
MarymoorStudios.Core.Fsm.dll

Abstract base class for Hierarchical State Machines that involve at least one eventual input.

public abstract class PromiseHsm<T, THsm, TState, TInputs> : Hsm<T, THsm, TState, TInputs>, IPromiseDisposable where THsm : PromiseHsm<T, THsm, TState, TInputs>, IHsm<T, THsm, TState, TInputs> where TState : HsmState<T, THsm, TState, TInputs>, IHsmState<T, THsm, TState, TInputs>

Type Parameters

T

The data class for the state machine.

THsm

The class for the state machine itself.

TState

The base-type for all states in the machine.

TInputs

The class that defines inputs to the machine.

Inheritance
Hsm<T, THsm, TState, TInputs>
PromiseHsm<T, THsm, TState, TInputs>
Implements
Inherited Members

Constructors

PromiseHsm(T)

protected PromiseHsm(T data)

Parameters

data T

Methods

DisposeAsync()

public Promise DisposeAsync()

Returns

Promise

PendingDecrement()

protected void PendingDecrement()

PendingIncrement()

protected void PendingIncrement()

Wait()

public Promise Wait()

Returns

Promise