EditorConfig.cs 3.2 KB

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