This commit is contained in:
Marco 2025-03-04 17:50:16 +01:00
commit 5a09b7fcd1
18 changed files with 229 additions and 3 deletions

View file

@ -0,0 +1,18 @@
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);
}