|
@@ -41,6 +41,13 @@ public class ServerStartEventHandler : AEvent<ServerStart>
|
|
|
//Console.WriteLine(ec_str);
|
|
|
//Console.WriteLine(tc_str);
|
|
|
EditorConfig? editorConfig = JsonConvert.DeserializeObject<EditorConfig>(ec_str);
|
|
|
+ //for (int i = 0; i < editorConfig.medicalTargetPoints.Count; i++)
|
|
|
+ //{
|
|
|
+ // for (int z = 0; z < editorConfig.medicalTargetPoints[i].TargetType.diseaseTypes.Length; z++)
|
|
|
+ // {
|
|
|
+ // Console.WriteLine("疾病类型:" + editorConfig.medicalTargetPoints[i].TargetType.diseaseTypes[z]);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
TaskConfig? taskConfig = JsonConvert.DeserializeObject<TaskConfig>(tc_str);
|
|
|
//int index = 0;
|
|
|
//foreach (var item in taskConfig.LandSouJiuTasks)
|
|
@@ -114,71 +121,107 @@ public class ServerStartEventHandler : AEvent<ServerStart>
|
|
|
// { EditorConfig = editorConfig, XHTask = xhTask });
|
|
|
//}
|
|
|
//Console.WriteLine("taskConfig.seaSouJiuTasks.Count:" + taskConfig.seaSouJiuTasks.Count);
|
|
|
- //创建搜救
|
|
|
- foreach (var seaSJTask in taskConfig.seaSouJiuTasks)
|
|
|
- {
|
|
|
- taskSys.missionCount++;
|
|
|
- //Console.WriteLine("seaSJTask.missionInformation.MissionName:" + seaSJTask.missionInformation.MissionName);
|
|
|
- //Console.WriteLine("TargetPointId:" + seaSJTask.TargetPointId);
|
|
|
- //Console.WriteLine("SearchPayload:" + seaSJTask.SearchPayload);
|
|
|
- //Console.WriteLine("SearchMode:" + seaSJTask.SearchMode);
|
|
|
- //Console.WriteLine("RadarTransmitterPower:" + seaSJTask.RadarTransmitterPower);
|
|
|
- //Console.WriteLine("仿真次数:" + editorConfig.runCounts);
|
|
|
- Game.EventSystem.Publish(new CreateSeaSJTask
|
|
|
- { EditorConfig = editorConfig, SeaSJTask = seaSJTask });
|
|
|
- //break;
|
|
|
- }
|
|
|
+ ////创建搜救
|
|
|
+ //foreach (var seaSJTask in taskConfig.seaSouJiuTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // //Console.WriteLine("seaSJTask.missionInformation.MissionName:" + seaSJTask.missionInformation.MissionName);
|
|
|
+ // //Console.WriteLine("TargetPointId:" + seaSJTask.TargetPointId);
|
|
|
+ // //Console.WriteLine("SearchPayload:" + seaSJTask.SearchPayload);
|
|
|
+ // //Console.WriteLine("SearchMode:" + seaSJTask.SearchMode);
|
|
|
+ // //Console.WriteLine("RadarTransmitterPower:" + seaSJTask.RadarTransmitterPower);
|
|
|
+ // //Console.WriteLine("仿真次数:" + editorConfig.runCounts);
|
|
|
+ // Game.EventSystem.Publish(new CreateSeaSJTask
|
|
|
+ // { EditorConfig = editorConfig, SeaSJTask = seaSJTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
|
|
|
- foreach (var landSXTask in taskConfig.LandSouXunTasks)
|
|
|
- {
|
|
|
- taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateLandSXTask
|
|
|
- { EditorConfig = editorConfig, LandSXTask = landSXTask });
|
|
|
- //break;
|
|
|
- }
|
|
|
+ //foreach (var landSXTask in taskConfig.LandSouXunTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateLandSXTask
|
|
|
+ // { EditorConfig = editorConfig, LandSXTask = landSXTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
|
|
|
- //创建空中吊运救援任务
|
|
|
- foreach (var KZDYTask in taskConfig.KZDYTasks)
|
|
|
- {
|
|
|
- taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateKZDYTask
|
|
|
- { EditorConfig = editorConfig, KZDYTask = KZDYTask });
|
|
|
- //break;
|
|
|
- }
|
|
|
+ ////创建空中吊运救援任务
|
|
|
+ //foreach (var KZDYTask in taskConfig.KZDYTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateKZDYTask
|
|
|
+ // { EditorConfig = editorConfig, KZDYTask = KZDYTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
+
|
|
|
+ ////创建空投空送任务
|
|
|
+ //foreach (var KTKSTask in taskConfig.KTKSTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateKTKSTask
|
|
|
+ // { EditorConfig = editorConfig, KTKSTask = KTKSTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
+
|
|
|
+ ////创建着水救援任务
|
|
|
+ //foreach (var ZSJYTask in taskConfig.ZSJYTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateZSJYTask
|
|
|
+ // { EditorConfig = editorConfig, ZSJYTask = ZSJYTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
+
|
|
|
+ ////创建机降救援任务
|
|
|
+ //foreach (var JJJYTask in taskConfig.JJJYTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateJJJYTask
|
|
|
+ // { EditorConfig = editorConfig, JJJYTask = JJJYTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
+
|
|
|
+ ////创建索滑降救援任务
|
|
|
+ //foreach (var SHJTask in taskConfig.SHJTasks)
|
|
|
+ //{
|
|
|
+ // taskSys.missionCount++;
|
|
|
+ // Game.EventSystem.Publish(new CreateSHJTask
|
|
|
+ // { EditorConfig = editorConfig, SHJTask = SHJTask });
|
|
|
+ // //break;
|
|
|
+ //}
|
|
|
|
|
|
- //创建空投空送任务
|
|
|
- foreach (var KTKSTask in taskConfig.KTKSTasks)
|
|
|
+ //创建现场急救任务
|
|
|
+ foreach (var XCJJTask in taskConfig.XCJJTasks)
|
|
|
{
|
|
|
taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateKTKSTask
|
|
|
- { EditorConfig = editorConfig, KTKSTask = KTKSTask });
|
|
|
+ Game.EventSystem.Publish(new CreateXCJJTask
|
|
|
+ { EditorConfig = editorConfig, XCJJTask = XCJJTask });
|
|
|
//break;
|
|
|
}
|
|
|
|
|
|
- //创建着水救援任务
|
|
|
- foreach (var ZSJYTask in taskConfig.ZSJYTasks)
|
|
|
+ //医疗转运任务
|
|
|
+ foreach (var YLZYTask in taskConfig.YLZYTasks)
|
|
|
{
|
|
|
taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateZSJYTask
|
|
|
- { EditorConfig = editorConfig, ZSJYTask = ZSJYTask });
|
|
|
+ Game.EventSystem.Publish(new CreateYLZYTask
|
|
|
+ { EditorConfig = editorConfig, YLZYTask = YLZYTask });
|
|
|
//break;
|
|
|
}
|
|
|
|
|
|
- //创建机降救援任务
|
|
|
- foreach (var JJJYTask in taskConfig.JJJYTasks)
|
|
|
+ //医疗物品运送
|
|
|
+ foreach (var YLWPYSTask in taskConfig.YLWPYSTasks)
|
|
|
{
|
|
|
taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateJJJYTask
|
|
|
- { EditorConfig = editorConfig, JJJYTask = JJJYTask });
|
|
|
+ Game.EventSystem.Publish(new CreateYLWPYSTask
|
|
|
+ { EditorConfig = editorConfig, YLWPYSTask = YLWPYSTask });
|
|
|
//break;
|
|
|
}
|
|
|
|
|
|
- //创建索滑降救援任务
|
|
|
- foreach (var SHJTask in taskConfig.SHJTasks)
|
|
|
+ //绞车吊载转运任务
|
|
|
+ foreach (var JCDZZYTask in taskConfig.JCDZZYTasks)
|
|
|
{
|
|
|
taskSys.missionCount++;
|
|
|
- Game.EventSystem.Publish(new CreateSHJTask
|
|
|
- { EditorConfig = editorConfig, SHJTask = SHJTask });
|
|
|
+ Game.EventSystem.Publish(new CreateJCDZZYTask
|
|
|
+ { EditorConfig = editorConfig, JCDZZYTask = JCDZZYTask });
|
|
|
//break;
|
|
|
}
|
|
|
|