|
@@ -1,5 +1,6 @@
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
using KYFramework;
|
|
|
+using Model;
|
|
|
using MongoDB.Bson;
|
|
|
using SimulationServer.Utils;
|
|
|
|
|
@@ -8,15 +9,14 @@ namespace SimulationServer;
|
|
|
public class XHRescueMission : BaseMission
|
|
|
{
|
|
|
|
|
|
- // 火场点
|
|
|
- public FireGround FireGround;
|
|
|
-
|
|
|
public double tn;
|
|
|
|
|
|
public bool IsRunning;
|
|
|
public Action End;
|
|
|
public double SimulationTime;
|
|
|
|
|
|
+ public XHTask XHTask;
|
|
|
+
|
|
|
public int ExcuteCount = 1;
|
|
|
public int FailureTimes = 0;
|
|
|
|
|
@@ -32,7 +32,16 @@ public class XHRescueMission : BaseMission
|
|
|
Log.Info($"{MissionId} 任务开始!");
|
|
|
Aircrafts.ForEach(a => a.Start());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ public override List<double[]> AddPoints()
|
|
|
+ {
|
|
|
+ List<double[]> points = new List<double[]>();
|
|
|
+
|
|
|
+ points.AddRange(XHTask.paramters[0].Poly);
|
|
|
+
|
|
|
+ return points;
|
|
|
+ }
|
|
|
+
|
|
|
public override void EndMission()
|
|
|
{
|
|
|
IsRunning = false;
|