EditorConfig.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using Model;
  2. using Newtonsoft.Json;
  3. public class Base
  4. {
  5. [JsonProperty("基地名称")]
  6. public string BaseName;
  7. [JsonProperty("基地编号")]
  8. public int BaseId;
  9. [JsonProperty("基地经度")]
  10. public double BaseLongitude;
  11. [JsonProperty("基地纬度")]
  12. public double BaseLatitude;
  13. [JsonProperty("基地海拔")]
  14. public double BaseHeight;
  15. }
  16. public struct AircraftParameter
  17. {
  18. [JsonProperty("机型")]
  19. public string AircraftID;
  20. [JsonProperty("飞机编号")]
  21. public string Id;//如1-2,1表示基地1,2表示基地1中的2号飞机
  22. [JsonProperty("类型")]
  23. public string AircraftType;
  24. [JsonProperty("子类型")]
  25. public string AircraftSubType;
  26. [JsonProperty("最大起飞重量")]
  27. public double MaxTakeoffWeight;
  28. [JsonProperty("最大载油量")]
  29. public double MaxFuelCapacity;
  30. [JsonProperty("最大载客数量")]
  31. public double MaxPassengerNumber;
  32. [JsonProperty("所属机场ID")]
  33. public int AirportId;
  34. }
  35. public class FirePoint
  36. {
  37. [JsonProperty("火点ID")]
  38. public int FirePointId;
  39. [JsonProperty("火点经度")]
  40. public double FirePointLongitude;
  41. [JsonProperty("火点纬度")]
  42. public double FirePointLatitude;
  43. [JsonProperty("火点海拔")]
  44. public double FirePointHeight;
  45. [JsonProperty("初始火场面积")]
  46. public double InitialArea;
  47. [JsonProperty("初始火线长度")]
  48. public double fireLength;
  49. }
  50. public class ClimbSegment
  51. {
  52. [JsonProperty("爬升段速度")]
  53. public double ClimbVelocity;
  54. [JsonProperty("爬升段油耗率")]
  55. public double ClimbFuelConsumptionRate;
  56. }
  57. public class DescentSegment
  58. {
  59. [JsonProperty("下降段速度")]
  60. public double DescentVelocity;
  61. [JsonProperty("下降段油耗率")]
  62. public double DescentFuelConsumptionRate;
  63. }
  64. public class CruiseSegment
  65. {
  66. [JsonProperty("巡航段高度")]
  67. public double CruiseHeight = 2000;
  68. [JsonProperty("巡航段速度")]
  69. public double CruiseVelocity;
  70. [JsonProperty("巡航段油耗率")]
  71. public double CruiseFuelConsumptionRate;
  72. }
  73. public struct CityWeather
  74. {
  75. [JsonProperty("温度")]
  76. public double Temperature;
  77. }
  78. public class EditorConfig
  79. {
  80. [JsonProperty("基地信息")]
  81. public List<Base> bases = new List<Base>();
  82. [JsonProperty("飞行器信息")]
  83. public List<AircraftParameter>aircraftParameters = new List<AircraftParameter>();
  84. [JsonProperty("火点")]
  85. public List<FirePoint> firePoints = new List<FirePoint>();
  86. [JsonProperty("天气信息")]
  87. public CityWeather cityWeather = new CityWeather();
  88. }