FlightPlanEditor.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using Newtonsoft.Json;
  2. namespace Model;
  3. public class FlightPlanEditor
  4. {
  5. public AircraftParameter aircraftparameter;
  6. public CityWeather cityweather;
  7. public Base originbase;
  8. public Base fuelbase;
  9. public Base endbase;
  10. public AirRoute[] airroute = new AirRoute[1];
  11. [JsonProperty("任务点")]
  12. public MissionPoint missionpoint = new MissionPoint();
  13. [JsonProperty("火点")]
  14. public FirePoint[] firepoint = new FirePoint[1];
  15. [JsonProperty("搜救目标初始点")]
  16. public TargetPoint[] targetpoint = new TargetPoint[1];
  17. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, Base fuelBase, Base endBase,AirRoute[] airroute, MissionPoint missionpoint, FirePoint[] firepoint)
  18. {
  19. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  20. flightPlanEditor.aircraftparameter = aircraftparameter;
  21. flightPlanEditor.fuelbase = fuelBase;
  22. flightPlanEditor.endbase = endBase;
  23. flightPlanEditor.cityweather = cityweather;
  24. flightPlanEditor.originbase = originbase;
  25. flightPlanEditor.airroute = airroute;
  26. flightPlanEditor.missionpoint = missionpoint;
  27. flightPlanEditor.firepoint = firepoint;
  28. return flightPlanEditor;
  29. }
  30. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, Base fuelBase, Base endBase, MissionPoint missionpoint, FirePoint[] firepoint)
  31. {
  32. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  33. flightPlanEditor.aircraftparameter = aircraftparameter;
  34. flightPlanEditor.cityweather = cityweather;
  35. flightPlanEditor.originbase = originbase;
  36. flightPlanEditor.fuelbase = fuelBase;
  37. flightPlanEditor.endbase = endBase;
  38. flightPlanEditor.missionpoint = missionpoint;
  39. flightPlanEditor.firepoint = firepoint;
  40. return flightPlanEditor;
  41. }
  42. public static FlightPlanEditor Create(AircraftParameter aircraftparameter, CityWeather cityweather, Base originbase, Base fuelBase, Base endBase, TargetPoint[] targetPoints)
  43. {
  44. FlightPlanEditor flightPlanEditor = new FlightPlanEditor();
  45. flightPlanEditor.aircraftparameter = aircraftparameter;
  46. flightPlanEditor.cityweather = cityweather;
  47. flightPlanEditor.originbase = originbase;
  48. flightPlanEditor.fuelbase = fuelBase;
  49. flightPlanEditor.endbase = endBase;
  50. flightPlanEditor.targetpoint = targetPoints;
  51. return flightPlanEditor;
  52. }
  53. }