cirnogodot/Scripts/Components/FSM/IModule.cs

14 lines
369 B
C#
Raw Normal View History

2025-03-04 18:16:39 +01:00
using Godot;
2025-03-04 17:50:16 +01:00
2025-03-04 18:16:39 +01:00
namespace Cirno.Scripts.Components.FSM;
public interface IModule<TKey, TType>
where TKey : notnull
where TType : Node
2025-03-04 17:50:16 +01:00
{
2025-03-08 11:33:26 +01:00
public void EnterState(TKey state);
public void ExitState(TKey state);
2025-03-04 18:16:39 +01:00
public void Init(IStateMachine<TKey, TType> machine);
public void Process(double delta);
public void PhysicsProcess(double delta);
2025-03-04 17:50:16 +01:00
}