20 lines
594 B
C#
20 lines
594 B
C#
namespace BaseGames.Enemies
|
||
{
|
||
/// <summary>
|
||
/// 敌人状态 POCO 接口。
|
||
/// EnemyBase.ForceState 通过字典分发 Enter/Exit,
|
||
/// 枚举 EnemyStateType 保持对外 API 不变。
|
||
/// </summary>
|
||
public interface IEnemyState
|
||
{
|
||
/// <summary>对应的枚举值(用于字典键以及 BD 查询)。</summary>
|
||
EnemyStateType StateType { get; }
|
||
|
||
/// <summary>进入此状态时调用。</summary>
|
||
void Enter(EnemyBase owner);
|
||
|
||
/// <summary>离开此状态时调用。</summary>
|
||
void Exit(EnemyBase owner);
|
||
}
|
||
}
|