EditorConfig.cs 3.4 KB

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