FlightPlanEditor.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, AirRoute[] airroute, MissionPoint missionpoint, FirePoint[] firepoint)
  21. {
  22. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  23. flightPlanEditor.aircraftparameter = aircraftparameter;
  24. flightPlanEditor.cityweather = cityweather;
  25. flightPlanEditor.originbase = originbase;
  26. flightPlanEditor.airroute = airroute;
  27. flightPlanEditor.missionpoint = missionpoint;
  28. flightPlanEditor.firepoint = firepoint;
  29. return flightPlanEditor;
  30. }
  31. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, MissionPoint missionpoint, FirePoint[] firepoint)
  32. {
  33. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  34. flightPlanEditor.aircraftparameter = aircraftparameter;
  35. flightPlanEditor.cityweather = cityweather;
  36. flightPlanEditor.originbase = originbase;
  37. flightPlanEditor.missionpoint = missionpoint;
  38. flightPlanEditor.firepoint = firepoint;
  39. return flightPlanEditor;
  40. }
  41. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, TargetPoint[] targetPoints)
  42. {
  43. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  44. flightPlanEditor.aircraftparameter = aircraftparameter;
  45. flightPlanEditor.cityweather = cityweather;
  46. flightPlanEditor.originbase = originbase;
  47. flightPlanEditor.targetpoint = targetPoints;
  48. return flightPlanEditor;
  49. }
  50. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, MedicalTargetPoint[] targetPoints)
  51. {
  52. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  53. flightPlanEditor.aircraftparameter = aircraftparameter;
  54. flightPlanEditor.cityweather = cityweather;
  55. flightPlanEditor.originbase = originbase;
  56. flightPlanEditor.medicalTargetPoint = targetPoints;
  57. return flightPlanEditor;
  58. }
  59. }