mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 11:55:53 +00:00
New FSM
This commit is contained in:
parent
b0d5edc84e
commit
5a09b7fcd1
18 changed files with 229 additions and 3 deletions
18
Scripts/Components/FSM/IState.cs
Normal file
18
Scripts/Components/FSM/IState.cs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue