2026-06-14 11:19:15 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using SimpleCore.Navigation;
|
|
|
|
|
|
using StandardScene.CarTypes;
|
|
|
|
|
|
|
|
|
|
|
|
namespace StandardScene.Magnetic
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2026-06-26 15:00:53 +08:00
|
|
|
|
/// scene.mag 平台画像:磁导航场景插件。
|
2026-08-14 09:49:23 +08:00
|
|
|
|
/// <para>车型:<see cref="MagCar"/>(FASS 1.0 TCP)、<see cref="Mag2Car"/>(FASS 2.0 UDP/任务状态机)。
|
|
|
|
|
|
/// Loop 导航:继续使用 Core <c>LoopMission</c> 或本插件 <c>Mag2LoopMission</c> 分配 <c>goalSite</c>,
|
|
|
|
|
|
/// <see cref="Mag2Car"/> 拦截编译脚本后一次下发全程 <c>0xB1</c>。</para>
|
2026-08-26 11:18:40 +08:00
|
|
|
|
/// 宿主(Simple3)加载本 dll 后反射实例化并 OnActivate / 注册。
|
2026-06-14 11:19:15 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public sealed class MagneticSceneProfile : NavigationProfileBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public override NavKind Kind => NavKind.Magnetic;
|
|
|
|
|
|
|
|
|
|
|
|
public override string SceneId => "scene.mag";
|
|
|
|
|
|
|
|
|
|
|
|
public override string DisplayName => "磁导航平台";
|
|
|
|
|
|
|
|
|
|
|
|
public override IReadOnlyList<Type> CarTypes => new[]
|
|
|
|
|
|
{
|
2026-06-26 15:00:53 +08:00
|
|
|
|
typeof(MagCar),
|
2026-08-14 09:49:23 +08:00
|
|
|
|
typeof(Mag2Car),
|
2026-06-14 11:19:15 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public override void OnActivate(ISceneContext context)
|
|
|
|
|
|
{
|
2026-08-14 09:49:23 +08:00
|
|
|
|
context.Log($"{DisplayName} 已激活(车型:MagCar / Mag2Car)");
|
2026-06-14 11:19:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|