Files
zeling_v2/Assets/_Game/Scripts/Enemies/States/IEnemyState.cs

20 lines
594 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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);
}
}