feat(ai): BrainGraph 能力接口(ISensor/IMover/ICombatant/IActorVitals)+IAiContext

This commit is contained in:
2026-07-03 13:58:52 +08:00
parent db5bd019f8
commit 7281c5cf6e
10 changed files with 120 additions and 0 deletions
+13
View File
@@ -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; }
}
}