server-master/srcs/WingsAPI.Game/Skills/IScoutComponent.cs
2026-02-10 18:21:30 +01:00

31 lines
No EOL
649 B
C#

namespace WingsEmu.Game.Skills;
public interface IScoutComponent
{
public ScoutStateType ScoutStateType { get; }
public void ChangeScoutState(ScoutStateType stateType);
}
public class ScoutComponent : IScoutComponent
{
public ScoutComponent() => ScoutStateType = ScoutStateType.None;
public ScoutStateType ScoutStateType { get; private set; }
public void ChangeScoutState(ScoutStateType stateType)
{
if (ScoutStateType == stateType)
{
return;
}
ScoutStateType = stateType;
}
}
public enum ScoutStateType : byte
{
None = 0,
FirstState = 1,
SecondState = 2
}