mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 00:05:53 +00:00
18 lines
453 B
C#
18 lines
453 B
C#
|
|
using Godot;
|
|||
|
|
|
|||
|
|
namespace Cirno.Scripts.Components.FSM;
|
|||
|
|
|
|||
|
|
public interface IState<TKey, TType>
|
|||
|
|
where TKey : notnull
|
|||
|
|
where TType : Node
|
|||
|
|
{
|
|||
|
|
public TKey StateId { get; }
|
|||
|
|
public IStateMachine<TKey, TType> StateMachine { get; }
|
|||
|
|
|
|||
|
|
public void Init(IStateMachine<TKey, TType> machine);
|
|||
|
|
|
|||
|
|
public void EnterState();
|
|||
|
|
public void ExitState();
|
|||
|
|
public void ProcessState(double delta);
|
|||
|
|
public void PhysicsProcessState(double delta);
|
|||
|
|
}
|