feat(ai): BrainGraph 能力接口(ISensor/IMover/ICombatant/IActorVitals)+IAiContext
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BaseGames.AI
|
||||
{
|
||||
/// <summary>感知能力接口(第 3 阶段由 SensorAdapter 适配感知系统)。</summary>
|
||||
public interface ISensor
|
||||
{
|
||||
bool SeesPlayer();
|
||||
bool InRange(float range); // 内部用平方距离比较
|
||||
bool LostFor(float seconds); // 丢失玩家已持续 seconds
|
||||
Vector2 LastKnown { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user