FlightPlanEditor.cs 2.2 KB

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