IState<TState> Interface

Summary

A state that can be used in a Animancer.FSM.StateMachine`1.
graph BT Type["IState<TState>"] class Type type-node Implementing0["LocomotionState"]-.->Type click Implementing0 "/animancer/api/Animancer.Examples.StateMachines.Brains/LocomotionState" Implementing1["CreatureState"]-.->Type click Implementing1 "/animancer/api/Animancer.Examples.StateMachines.Brains/CreatureState" Implementing2["IOwnedState<TState>"]-.->Type click Implementing2 "/animancer/api/Animancer.FSM/IOwnedState_1" Implementing3["CreatureState"]-.->Type click Implementing3 "/animancer/api/Animancer.Examples.StateMachines.Creatures/CreatureState" Implementing4["LocomotionState"]-.->Type click Implementing4 "/animancer/api/Animancer.Examples.AnimatorControllers/LocomotionState" Implementing5["TimelineState"]-.->Type click Implementing5 "/animancer/api/Animancer.Examples.StateMachines.Platformer/TimelineState" Implementing6["FlinchState"]-.->Type click Implementing6 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/FlinchState" Implementing7["AdvancedJumpState"]-.->Type click Implementing7 "/animancer/api/Animancer.Examples.StateMachines.Platformer/AdvancedJumpState" Implementing8["AttackState"]-.->Type click Implementing8 "/animancer/api/Animancer.Examples.StateMachines.Weapons/AttackState" Implementing9["DieState"]-.->Type click Implementing9 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/DieState" Implementing10["StateBehaviour<TState>"]-.->Type click Implementing10 "/animancer/api/Animancer.FSM/StateBehaviour_1" Implementing11["RespawnState"]-.->Type click Implementing11 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/RespawnState" Implementing12["EquipState"]-.->Type click Implementing12 "/animancer/api/Animancer.Examples.StateMachines.Weapons/EquipState" Implementing13["AttackState"]-.->Type click Implementing13 "/animancer/api/Animancer.Examples.StateMachines.Platformer/AttackState" Implementing14["JumpState"]-.->Type click Implementing14 "/animancer/api/Animancer.Examples.StateMachines.Platformer/JumpState" Implementing15["AirborneState"]-.->Type click Implementing15 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/AirborneState" Implementing16["IdleState"]-.->Type click Implementing16 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/IdleState" Implementing17["AttackState"]-.->Type click Implementing17 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/AttackState" Implementing18["DelegateState<TState>"]-.->Type click Implementing18 "/animancer/api/Animancer.FSM/DelegateState_1" Implementing19["LandingState"]-.->Type click Implementing19 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/LandingState" Implementing20["CreatureState"]-.->Type click Implementing20 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/CreatureState" Implementing21["LocomotionState"]-.->Type click Implementing21 "/animancer/api/Animancer.Examples.AnimatorControllers.GameKit/LocomotionState" Implementing22["CreatureState"]-.->Type click Implementing22 "/animancer/api/Animancer.Examples.StateMachines.Platformer/CreatureState" Implementing23["CreatureState"]-.->Type click Implementing23 "/animancer/api/Animancer.Examples.StateMachines.InterruptManagement/CreatureState" Implementing24["IdleState"]-.->Type click Implementing24 "/animancer/api/Animancer.Examples.StateMachines.Platformer/IdleState" Implementing25["IdleState"]-.->Type click Implementing25 "/animancer/api/Animancer.Examples.StateMachines.Brains/IdleState" Implementing26["DieState"]-.->Type click Implementing26 "/animancer/api/Animancer.Examples.StateMachines.Platformer/DieState"

Syntax

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

Type Parameters

Name Description
TState

Methods

Name Value Summary
CanEnterState(TState) bool
Determines whether this state can be entered.
CanExitState(TState) bool
Determines whether this state can be exited.
OnEnterState() void
Called when this state is entered.
OnExitState() void
Called when this state is exited.