IOwnedState<TState> Interface

Summary

An Animancer.FSM.IState that knows which Animancer.FSM.StateMachine`1 it is used in.
IOwnedState

Syntax

public interface IOwnedState<TState> : IState where TState : class, IState

Remarks

The Animancer.FSM.StateExtensions class contains various extension methods for this interface.

Documentation: Owned States

Type Parameters

Name Description
TState

Properties

Name Value Summary
OwnerStateMachine StateMachine<TState>
The Animancer.FSM.StateMachine`1 that this state is used in.

Extension Methods

Name Value Summary
GetNextState<IOwnedState<TState>>() TState
[Animancer Extension] Returns the Animancer.FSM.StateChange`1.NextState.
GetPreviousState<IOwnedState<TState>>() TState
[Animancer Extension] Returns the Animancer.FSM.StateChange`1.PreviousState.