refactor(ai): IAiContext.Mover→Locomotion,删除 IMover

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 12:14:53 +08:00
co-authored by Claude Opus 4.8
parent f143efe4a3
commit 1ab0521061
7 changed files with 34 additions and 57 deletions
@@ -0,0 +1,18 @@
using System.Collections.Generic;
using UnityEngine;
using BaseGames.AI;
namespace BaseGames.Tests.EditMode.AI
{
public sealed class FakeLocomotion : IEnemyLocomotion
{
public List<string> Calls = new List<string>();
public LocomotionMode CurrentMode { get; private set; }
public bool IsMoving { get; set; }
public void SetMode(LocomotionMode mode) { CurrentMode = mode; Calls.Add("SetMode:" + mode); }
public void Approach(Transform t) { CurrentMode = LocomotionMode.Approach; Calls.Add("Approach"); }
public void MoveTo(Vector2 p) { Calls.Add("MoveTo"); }
public void Face(Vector2 p) { CurrentMode = LocomotionMode.Face; Calls.Add("Face"); }
public void Stop() { CurrentMode = LocomotionMode.Idle; Calls.Add("Stop"); }
}
}