EditorConfig.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 TargetPoint//搜救目标点初始坐标
  51. {
  52. [JsonProperty("目标点ID")]
  53. public int TargetPointId;
  54. [JsonProperty("目标点经度")]
  55. public double TargetPointLongitude;
  56. [JsonProperty("目标点纬度")]
  57. public double TargetPointLatitude;
  58. [JsonProperty("目标点海拔")]
  59. public double TargetPointHeight;
  60. }
  61. public class ClimbSegment
  62. {
  63. [JsonProperty("爬升段速度")]
  64. public double ClimbVelocity;
  65. [JsonProperty("爬升段油耗率")]
  66. public double ClimbFuelConsumptionRate;
  67. }
  68. public class DescentSegment
  69. {
  70. [JsonProperty("下降段速度")]
  71. public double DescentVelocity;
  72. [JsonProperty("下降段油耗率")]
  73. public double DescentFuelConsumptionRate;
  74. }
  75. public class CruiseSegment
  76. {
  77. [JsonProperty("巡航段高度")]
  78. public double CruiseHeight = 2000;
  79. [JsonProperty("巡航段速度")]
  80. public double CruiseVelocity;
  81. [JsonProperty("巡航段油耗率")]
  82. public double CruiseFuelConsumptionRate;
  83. }
  84. public struct CityWeather
  85. {
  86. [JsonProperty("温度")]
  87. public double Temperature;
  88. //能见度
  89. [JsonProperty("能见度")]
  90. public double Visibility;
  91. //水温
  92. [JsonProperty("水温")]
  93. public double WaterTemperature;
  94. }
  95. public class EditorConfig
  96. {
  97. [JsonProperty("基地信息")]
  98. public List<Base> bases = new List<Base>();
  99. [JsonProperty("飞行器信息")]
  100. public List<AircraftParameter>aircraftParameters = new List<AircraftParameter>();
  101. [JsonProperty("火点")]
  102. public List<FirePoint> firePoints = new List<FirePoint>();
  103. [JsonProperty("天气信息")]
  104. public CityWeather cityWeather = new CityWeather();
  105. [JsonProperty("搜救目标点初始坐标")]
  106. public List<TargetPoint> targetPoints = new List<TargetPoint>();
  107. }