StateMachine<TKey, TState>.

StateMachine<TKey, TState>.InputBuffer Class

Summary

A simple system that can Animancer.FSM.StateMachine`1.InputBuffer`1.State a state then try to enter it every time Animancer.FSM.StateMachine`1.InputBuffer`1.Update(System.Single) is called until the Animancer.FSM.StateMachine`1.InputBuffer`1.TimeOut expires.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Base Types
graph BT Type-->Base0["StateMachine<TState>.InputBuffer<StateMachine<TKey, TState>>"] Base0-->Base1["Object"] Type["StateMachine<TKey, TState>.InputBuffer"] class Type type-node

Syntax

public class StateMachine<TKey, TState>.InputBuffer : 
    StateMachine<TState>.InputBuffer<StateMachine<TKey, TState>>

Examples

See Animancer.FSM.StateMachine`1.InputBuffer`1.

Remarks

Documentation: Input Buffers

Constructors

Name Summary
InputBuffer() Creates a new Animancer.FSM.StateMachine`2.InputBuffer.
InputBuffer(StateMachine<TKey, TState>) Creates a new Animancer.FSM.StateMachine`2.InputBuffer for the specified `stateMachine`.

Properties

Name Value Summary
Key TKey
The TKey of the state this buffer is currently attempting to enter.

Methods

Name Value Summary
Buffer(TKey, float) bool
If a state is registered with the `key`, this method calls Animancer.FSM.StateMachine`2.InputBuffer.Buffer(`0,`1,System.Single) and returns true. Otherwise it returns false.
Buffer(TKey, TState, float) void
Sets the Animancer.FSM.StateMachine`2.InputBuffer.Key, StateMachine<TState>.InputBuffer.State, and TimeOut.
Clear() void
Clears this buffer so it stops trying to enter the Animancer.FSM.StateMachine`1.InputBuffer`1.State.
TryEnterState() bool
Attempts to enter the Animancer.FSM.StateMachine`1.InputBuffer`1.State and returns true if successful.