using UnityEngine;

namespace FishROV.AvoidanceBenchmark
{
    public sealed class NoAvoidanceAdapter : IAvoidanceAdapter
    {
        public string Name => "无避障";
        public bool IsAvailable => true;
        public string Status => "基线移动：只按期望速度移动，不做避障。";

        public void Initialize(AvoidanceBenchmarkConfig config)
        {
        }

        public BenchmarkAgent CreateAgent(BenchmarkAgentSpawnInfo spawnInfo, Transform parent)
        {
            return BenchmarkAgent.CreatePrimitive(spawnInfo, parent);
        }

        public void SetPreferredVelocity(BenchmarkAgent agent, Vector3 preferredVelocity)
        {
            agent.ApplyVelocity(preferredVelocity);
        }

        public void SetTarget(BenchmarkAgent agent, Vector3 target)
        {
            agent.Target = target;
        }

        public void Tick(float deltaTime)
        {
        }

        public void Dispose()
        {
        }
    }
}
