FlightPlanEditor.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Newtonsoft.Json;
  2. namespace Model;
  3. public class FlightPlanEditor
  4. {
  5. [JsonProperty("飞机参数")]
  6. public AircraftParameter aircraftparameter;
  7. public CityWeather cityweather;
  8. [JsonProperty("基地参数")]
  9. public Base originbase;
  10. [JsonProperty("巡护航线参数")]
  11. public AirRoute[] airroute = new AirRoute[1];
  12. [JsonProperty("任务点")]
  13. public MissionPoint missionpoint = new MissionPoint();
  14. [JsonProperty("火点")]
  15. public FirePoint[] firepoint = new FirePoint[1];
  16. [JsonProperty("搜救目标初始点")]
  17. public TargetPoint[] targetpoint = new TargetPoint[1];
  18. [JsonProperty("医疗目标初始点")]
  19. public MedicalTargetPoint[] medicalTargetPoint = new MedicalTargetPoint[1];
  20. [JsonProperty("医疗物品初始点")]
  21. public MedicalSuppliesInfo[] medicalSuppliesInfo = new MedicalSuppliesInfo[1];
  22. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, AirRoute[] airroute, MissionPoint missionpoint, FirePoint[] firepoint)
  23. {
  24. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  25. flightPlanEditor.aircraftparameter = aircraftparameter;
  26. flightPlanEditor.cityweather = cityweather;
  27. flightPlanEditor.originbase = originbase;
  28. flightPlanEditor.airroute = airroute;
  29. flightPlanEditor.missionpoint = missionpoint;
  30. flightPlanEditor.firepoint = firepoint;
  31. return flightPlanEditor;
  32. }
  33. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, MissionPoint missionpoint, FirePoint[] firepoint)
  34. {
  35. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  36. flightPlanEditor.aircraftparameter = aircraftparameter;
  37. flightPlanEditor.cityweather = cityweather;
  38. flightPlanEditor.originbase = originbase;
  39. flightPlanEditor.missionpoint = missionpoint;
  40. flightPlanEditor.firepoint = firepoint;
  41. return flightPlanEditor;
  42. }
  43. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, TargetPoint[] targetPoints)
  44. {
  45. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  46. flightPlanEditor.aircraftparameter = aircraftparameter;
  47. flightPlanEditor.cityweather = cityweather;
  48. flightPlanEditor.originbase = originbase;
  49. flightPlanEditor.targetpoint = targetPoints;
  50. return flightPlanEditor;
  51. }
  52. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, MedicalTargetPoint[] targetPoints)
  53. {
  54. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  55. flightPlanEditor.aircraftparameter = aircraftparameter;
  56. flightPlanEditor.cityweather = cityweather;
  57. flightPlanEditor.originbase = originbase;
  58. flightPlanEditor.medicalTargetPoint = targetPoints;
  59. return flightPlanEditor;
  60. }
  61. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, MedicalSuppliesInfo[] targetPoints)
  62. {
  63. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  64. flightPlanEditor.aircraftparameter = aircraftparameter;
  65. flightPlanEditor.cityweather = cityweather;
  66. flightPlanEditor.originbase = originbase;
  67. flightPlanEditor.medicalSuppliesInfo = targetPoints;
  68. return flightPlanEditor;
  69. }
  70. }