123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- using Model;
- using Newtonsoft.Json;
- public class Base
- {
- [JsonProperty("基地名称")]
- public string BaseName;
- [JsonProperty("基地编号")]
- public int BaseId;
- [JsonProperty("基地经度")]
- public double BaseLongitude;
- [JsonProperty("基地纬度")]
- public double BaseLatitude;
- [JsonProperty("基地海拔")]
- public double BaseHeight;
- }
- public struct AircraftParameter
- {
- [JsonProperty("机型")]
- public string AircraftID;
- [JsonProperty("飞机编号")]
- public string Id;//如1-2,1表示基地1,2表示基地1中的2号飞机
- [JsonProperty("类型")]
- public string AircraftType;
- [JsonProperty("子类型")]
- public string AircraftSubType;
- [JsonProperty("最大起飞重量")]
- public double MaxTakeoffWeight;
- [JsonProperty("最大载油量")]
- public double MaxFuelCapacity;
- [JsonProperty("最大载客数量")]
- public double MaxPassengerNumber;
- [JsonProperty("所属机场ID")]
- public int AirportId;
- }
- public class FirePoint
- {
- [JsonProperty("火点ID")]
- public int FirePointId;
- [JsonProperty("火点经度")]
- public double FirePointLongitude;
- [JsonProperty("火点纬度")]
- public double FirePointLatitude;
- [JsonProperty("火点海拔")]
- public double FirePointHeight;
- [JsonProperty("初始火场面积")]
- public double InitialArea;
- [JsonProperty("初始火线长度")]
- public double fireLength;
- }
- public class TargetPoint//搜救目标点初始坐标
- {
- [JsonProperty("目标点ID")]
- public int TargetPointId;
- [JsonProperty("目标点经度")]
- public double TargetPointLongitude;
- [JsonProperty("目标点纬度")]
- public double TargetPointLatitude;
- [JsonProperty("目标点海拔")]
- public double TargetPointHeight;
- }
- public class ClimbSegment
- {
- [JsonProperty("爬升段速度")]
- public double ClimbVelocity;
- [JsonProperty("爬升段油耗率")]
- public double ClimbFuelConsumptionRate;
- }
- public class DescentSegment
- {
- [JsonProperty("下降段速度")]
- public double DescentVelocity;
- [JsonProperty("下降段油耗率")]
- public double DescentFuelConsumptionRate;
- }
- public class CruiseSegment
- {
- [JsonProperty("巡航段高度")]
- public double CruiseHeight = 2000;
- [JsonProperty("巡航段速度")]
- public double CruiseVelocity;
- [JsonProperty("巡航段油耗率")]
- public double CruiseFuelConsumptionRate;
- }
- public struct CityWeather
- {
- [JsonProperty("温度")]
- public double Temperature;
- //能见度
- [JsonProperty("能见度")]
- public double Visibility;
- //水温
- [JsonProperty("水温")]
- public double WaterTemperature;
- }
- public class EditorConfig
- {
- [JsonProperty("基地信息")]
- public List<Base> bases = new List<Base>();
- [JsonProperty("飞行器信息")]
- public List<AircraftParameter>aircraftParameters = new List<AircraftParameter>();
- [JsonProperty("火点")]
- public List<FirePoint> firePoints = new List<FirePoint>();
- [JsonProperty("天气信息")]
- public CityWeather cityWeather = new CityWeather();
- [JsonProperty("搜救目标点初始坐标")]
- public List<TargetPoint> targetPoints = new List<TargetPoint>();
- }
|