cirnogodot/Scripts/Components/FSM/ModuleBase.cs

14 lines
461 B
C#
Raw Normal View History

2025-03-04 17:50:16 +01:00
using Godot;
namespace Cirno.Scripts.Components.FSM;
2025-03-04 18:16:39 +01:00
public abstract partial class ModuleBase<TKey, TType> : Node2D, 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 abstract void EnterState(TKey state);
public abstract void ExitState(TKey state);
2025-03-04 18:16:39 +01:00
public abstract void Init(IStateMachine<TKey, TType> machine);
public abstract void Process(double delta);
public abstract void PhysicsProcess(double delta);
2025-03-04 17:50:16 +01:00
}