|
@@ -18,20 +18,17 @@ public class XHRescueMission : Entity
|
|
|
|
|
|
public bool IsRunning;
|
|
public bool IsRunning;
|
|
public Action End;
|
|
public Action End;
|
|
-
|
|
|
|
|
|
+ public double SimulationTime;
|
|
|
|
|
|
// 巡护的 单机能力
|
|
// 巡护的 单机能力
|
|
// <机型,<sheet,<指标名,值列表>>>
|
|
// <机型,<sheet,<指标名,值列表>>>
|
|
- Dictionary<string,Dictionary<string,Dictionary<string,List<string>>>> singleReport =
|
|
|
|
- new Dictionary<string, Dictionary<string, Dictionary<string, List<string>>>>();
|
|
|
|
|
|
+ public Dictionary<string,Dictionary<string,Dictionary<string,List<string>>>> singleReport = new ();
|
|
|
|
|
|
|
|
|
|
// 灭火的 整体能力
|
|
// 灭火的 整体能力
|
|
- Dictionary<string, Dictionary<string, List<string>>> totalXhReport =
|
|
|
|
- new Dictionary<string, Dictionary<string, List<string>>>();
|
|
|
|
|
|
+ public Dictionary<string, Dictionary<string, List<string>>> totalXhReport = new ();
|
|
|
|
|
|
- Dictionary<string, Dictionary<string, List<string>>> equipReport =
|
|
|
|
- new Dictionary<string, Dictionary<string, List<string>>>();
|
|
|
|
|
|
+ public Dictionary<string, Dictionary<string, List<string>>> equipReport = new ();
|
|
|
|
|
|
public void Reset()
|
|
public void Reset()
|
|
{
|
|
{
|
|
@@ -50,9 +47,9 @@ public class XHRescueMission : Entity
|
|
Log.Info($"{MissionId} 任务结束!");
|
|
Log.Info($"{MissionId} 任务结束!");
|
|
// 灭火完成 任务结束
|
|
// 灭火完成 任务结束
|
|
End?.Invoke();
|
|
End?.Invoke();
|
|
-
|
|
|
|
SaveXH();
|
|
SaveXH();
|
|
ReportXH();
|
|
ReportXH();
|
|
|
|
+ this.StartAsyncXH();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -67,9 +64,9 @@ public class XHRescueMission : Entity
|
|
staticCapacity.FillData(aircraftXh.Db);
|
|
staticCapacity.FillData(aircraftXh.Db);
|
|
economical.FillData(aircraftXh.Db);
|
|
economical.FillData(aircraftXh.Db);
|
|
|
|
|
|
- if (!singleReport.ContainsKey(aircraftXh.Name))
|
|
|
|
|
|
+ if (!singleReport.ContainsKey(aircraftXh.AircraftId))
|
|
{
|
|
{
|
|
- singleReport[aircraftXh.Name] = new Dictionary<string, Dictionary<string, List<string>>>();
|
|
|
|
|
|
+ singleReport[aircraftXh.AircraftId] = new Dictionary<string, Dictionary<string, List<string>>>();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -77,21 +74,21 @@ public class XHRescueMission : Entity
|
|
Dictionary<string, Dictionary<string, string>> staticReport = staticCapacity.GetReport();
|
|
Dictionary<string, Dictionary<string, string>> staticReport = staticCapacity.GetReport();
|
|
foreach (var kv in staticReport)
|
|
foreach (var kv in staticReport)
|
|
{
|
|
{
|
|
- if(!singleReport[aircraftXh.Name].ContainsKey(kv.Key)) singleReport[aircraftXh.Name][kv.Key] = new Dictionary<string, List<string>>();
|
|
|
|
|
|
+ if(!singleReport[aircraftXh.AircraftId].ContainsKey(kv.Key)) singleReport[aircraftXh.AircraftId][kv.Key] = new Dictionary<string, List<string>>();
|
|
foreach (var kv2 in kv.Value)
|
|
foreach (var kv2 in kv.Value)
|
|
{
|
|
{
|
|
- if (!singleReport[aircraftXh.Name][kv.Key].ContainsKey(kv2.Key)) singleReport[aircraftXh.Name][kv.Key][kv2.Key] = new List<string>();
|
|
|
|
- singleReport[aircraftXh.Name][kv.Key][kv2.Key].Add(kv2.Value);
|
|
|
|
|
|
+ if (!singleReport[aircraftXh.AircraftId][kv.Key].ContainsKey(kv2.Key)) singleReport[aircraftXh.AircraftId][kv.Key][kv2.Key] = new List<string>();
|
|
|
|
+ singleReport[aircraftXh.AircraftId][kv.Key][kv2.Key].Add(kv2.Value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Dictionary<string, Dictionary<string, string>> economicalReport = economical.GetReport();
|
|
Dictionary<string, Dictionary<string, string>> economicalReport = economical.GetReport();
|
|
foreach (var kv in economicalReport)
|
|
foreach (var kv in economicalReport)
|
|
{
|
|
{
|
|
- if(!singleReport[aircraftXh.Name].ContainsKey(kv.Key)) singleReport[aircraftXh.Name][kv.Key] = new Dictionary<string, List<string>>();
|
|
|
|
|
|
+ if(!singleReport[aircraftXh.AircraftId].ContainsKey(kv.Key)) singleReport[aircraftXh.AircraftId][kv.Key] = new Dictionary<string, List<string>>();
|
|
foreach (var kv2 in kv.Value)
|
|
foreach (var kv2 in kv.Value)
|
|
{
|
|
{
|
|
- if (!singleReport[aircraftXh.Name][kv.Key].ContainsKey(kv2.Key)) singleReport[aircraftXh.Name][kv.Key][kv2.Key] = new List<string>();
|
|
|
|
- singleReport[aircraftXh.Name][kv.Key][kv2.Key].Add(kv2.Value);
|
|
|
|
|
|
+ if (!singleReport[aircraftXh.AircraftId][kv.Key].ContainsKey(kv2.Key)) singleReport[aircraftXh.AircraftId][kv.Key][kv2.Key] = new List<string>();
|
|
|
|
+ singleReport[aircraftXh.AircraftId][kv.Key][kv2.Key].Add(kv2.Value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|