SupaLidlGame/State/Weapon/WeaponState.cs

20 lines
449 B
C#
Raw Normal View History

2023-05-26 17:42:50 -07:00
using Godot;
2023-06-03 18:21:46 -07:00
namespace SupaLidlGame.State.Weapon;
2023-05-26 17:42:50 -07:00
2023-06-03 18:21:46 -07:00
public abstract partial class WeaponState : Node, IState<WeaponState>
{
public virtual WeaponState Use() => null;
2023-05-26 22:28:08 -07:00
2023-06-03 18:21:46 -07:00
public virtual WeaponState Deuse() => null;
2023-05-26 17:42:50 -07:00
2023-06-03 18:21:46 -07:00
public abstract IState<WeaponState> Enter(IState<WeaponState> previousState);
2023-05-26 17:42:50 -07:00
2023-06-03 18:21:46 -07:00
public virtual void Exit(IState<WeaponState> nextState)
{
2023-05-26 17:42:50 -07:00
}
2023-06-03 18:21:46 -07:00
public virtual IState<WeaponState> Process(double delta) => null;
2023-05-26 17:42:50 -07:00
}