Dovenchiko

Untitled

Sep 22nd, 2020
594
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class Systems
  2.     {
  3.         public enum govType
  4.         {
  5.             Anarchy = 16,
  6.             //Colony,
  7.             Communism = 32,
  8.             Confederacy = 48,
  9.             Cooperative = 80,
  10.             Corporate = 64,
  11.             Democracy = 96,
  12.             Dictatorship = 112,
  13.             Feudal = 128,
  14.             //Imperial,
  15.             None = 176,
  16.             Patronage = 144,
  17.             PrisonColony = 150,
  18.             Theocracy = 160,
  19.             //Engineer
  20.         }
  21.  
  22.         public enum allegianceType
  23.         {
  24.             Alliance = 1,
  25.             Empire = 2,
  26.             Federation = 3,
  27.             Independent = 4,
  28.             None = 5
  29.         }
  30.  
  31.         public enum securityType
  32.         {
  33.             Anarchy = 64,
  34.             Low = 16,
  35.             Medium = 32,
  36.             High = 48
  37.         }
  38.  
  39.         public enum econmyType
  40.         {
  41.             Agriculture = 1,
  42.             Extraction = 2,
  43.             HighTech = 3,
  44.             Industrial = 4,
  45.             Military = 5,
  46.             Refinery = 6,
  47.             Service = 7,
  48.             Terraforming = 8,
  49.             Tourism = 9,
  50.             None = 10,
  51.             Colony = 11
  52.         }
  53.         public enum powerType
  54.         {
  55.             Contested = 48,
  56.             Control = 16,
  57.             Exploited = 32
  58.         }
  59.         [XmlAttribute]
  60.         public uint id { get; set; }
  61.         [XmlElement(IsNullable = true)]
  62.         public uint? edsm_id { get; set; }
  63.         [XmlAttribute]
  64.         public string name { get; set; }
  65.         [XmlAttribute]
  66.         public float x { get; set; }
  67.         [XmlAttribute]
  68.         public float y { get; set; }
  69.         [XmlAttribute]
  70.         public float z { get; set; }
  71.         [XmlAttribute]
  72.         public ulong population { get; set; }
  73.         [XmlAttribute]
  74.         public bool is_populated { get; set; }
  75.         [XmlElement(IsNullable = true)]
  76.         public uint? government_id { get; set; }
  77.         [XmlAttribute]
  78.         public string government { get; set; }
  79.         [XmlElement(IsNullable = true)]
  80.         public uint? allegiance_id { get; set; }
  81.         [XmlAttribute]
  82.         public string allegiance { get; set; }
  83.         public State[] states { get; set; }
  84.         [XmlElement(IsNullable = true)]
  85.         public uint? security_id { get; set; }
  86.         [XmlAttribute]
  87.         public string security { get; set; }
  88.         [XmlElement(IsNullable = true)]
  89.         public uint? primary_economy_id { get; set; }
  90.         [XmlAttribute]
  91.         public string primary_economy { get; set; }
  92.         [XmlAttribute]
  93.         public string power { get; set; }
  94.         [XmlAttribute]
  95.         public string power_state { get; set; }
  96.         [XmlElement(IsNullable = true)]
  97.         public uint? power_state_id { get; set; }
  98.         [XmlAttribute]
  99.         public bool needs_permit { get; set; }
  100.         [XmlAttribute]
  101.         public uint updated_at { get; set; }
  102.         [XmlAttribute]
  103.         public string simbad_ref { get; set; }
  104.         [XmlElement(IsNullable = true)]
  105.         public uint? controlling_minor_faction_id { get; set; }
  106.         [XmlAttribute]
  107.         public string controlling_minor_faction { get; set; }
  108.         [XmlElement(IsNullable = true)]
  109.         public ulong? reserve_type_id { get; set; }
  110.         [XmlAttribute]
  111.         public string reserve_type { get; set; }
  112.         public Minor_Faction_Presences[] minor_faction_presences { get; set; }
  113.         [XmlElement(IsNullable = true)]
  114.         public ulong? ed_system_address { get; set; }
  115.     }
  116.  
  117.     public class State
  118.     {
  119.         [XmlAttribute]
  120.         public int id { get; set; }
  121.         [XmlAttribute]
  122.         public string name { get; set; }
  123.     }
  124.  
  125.     public class Minor_Faction_Presences
  126.     {
  127.         [XmlElement(IsNullable = true)]
  128.         public int? happiness_id { get; set; }
  129.         [XmlAttribute]
  130.         public int minor_faction_id { get; set; }
  131.         [XmlElement(IsNullable = true)]
  132.         public float? influence { get; set; }
  133.         public Active_States[] active_states { get; set; }
  134.         public object[] pending_states { get; set; }
  135.         public object[] recovering_states { get; set; }
  136.     }
  137.  
  138.     public class Active_States
  139.     {
  140.         [XmlAttribute]
  141.         public int id { get; set; }
  142.         [XmlAttribute]
  143.         public string name { get; set; }
  144.     }
  145.  
  146.     public class Station
  147.     {
  148.         public override string ToString()
  149.         {
  150.             return $"{name} ({system_id})";
  151.         }
  152.  
  153.         [XmlAttribute]
  154.         public int id { get; set; }
  155.         [XmlAttribute]
  156.         public string name { get; set; }
  157.         [XmlAttribute]
  158.         public int system_id { get; set; }
  159.         [XmlElement(IsNullable = true)]
  160.         public int? updated_at { get; set; }
  161.         [XmlAttribute]
  162.         public string max_landing_pad_size { get; set; }
  163.         [XmlElement(IsNullable = true)]
  164.         public int? distance_to_star { get; set; }
  165.         [XmlElement(IsNullable = true)]
  166.         public int? government_id { get; set; }
  167.         public string government { get; set; }
  168.         [XmlElement(IsNullable = true)]
  169.         public int? allegiance_id { get; set; }
  170.         public string allegiance { get; set; }
  171.         public State[] states { get; set; }
  172.         [XmlElement(IsNullable = true)]
  173.         public int? type_id { get; set; }
  174.         public string type { get; set; }
  175.         [XmlAttribute]
  176.         public bool has_blackmarket { get; set; }
  177.         [XmlAttribute]
  178.         public bool has_market { get; set; }
  179.         [XmlAttribute]
  180.         public bool has_refuel { get; set; }
  181.         [XmlAttribute]
  182.         public bool has_repair { get; set; }
  183.         [XmlAttribute]
  184.         public bool has_rearm { get; set; }
  185.         [XmlAttribute]
  186.         public bool has_outfitting { get; set; }
  187.         [XmlAttribute]
  188.         public bool has_shipyard { get; set; }
  189.         [XmlAttribute]
  190.         public bool has_docking { get; set; }
  191.         [XmlAttribute]
  192.         public bool has_commodities { get; set; }
  193.         public string[] import_commodities { get; set; }
  194.         public string[] export_commodities { get; set; }
  195.         public string[] prohibited_commodities { get; set; }
  196.         public string[] economies { get; set; }
  197.         [XmlElement(IsNullable = true)]
  198.         public ulong? shipyard_updated_at { get; set; } = 0;
  199.         [XmlElement(IsNullable = true)]
  200.         public ulong? outfitting_updated_at { get; set; } = 0;
  201.         [XmlElement(IsNullable = true)]
  202.         public ulong? market_updated_at { get; set; } = 0;
  203.         [XmlAttribute]
  204.         public bool is_planetary { get; set; }
  205.         public string[] selling_ships { get; set; }
  206.         public int[] selling_modules { get; set; }
  207.         [XmlElement(IsNullable = true)]
  208.         public uint? settlement_size_id { get; set; }
  209.         public string settlement_size { get; set; }
  210.         [XmlElement(IsNullable = true)]
  211.         public uint? settlement_security_id { get; set; }
  212.         public string settlement_security { get; set; }
  213.         [XmlElement(IsNullable = true)]
  214.         public int? body_id { get; set; }
  215.         [XmlElement(IsNullable = true)]
  216.         public int? controlling_minor_faction_id { get; set; }
  217.         [XmlElement(IsNullable = true)]
  218.         public long? ed_market_id { get; set; }
  219.     }
  220.  
RAW Paste Data