Exemplo n.º 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="src"></param>
 public Station(SerializableOutpost src)
 {
     m_id              = src.StationID;
     m_name            = src.StationName;
     m_corporationID   = src.CorporationID;
     m_corporationName = src.CorporationName;
     m_owner           = StaticGeography.GetSystem(src.SolarSystemID);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Station"/> class.
        /// </summary>
        /// <param name="src">The source.</param>
        /// <exception cref="System.ArgumentNullException">src</exception>
        protected Station(SerializableOutpost src)
        {
            src.ThrowIfNull(nameof(src));

            ID              = src.StationID;
            Name            = src.StationName;
            CorporationID   = src.CorporationID;
            CorporationName = src.CorporationName;
            SolarSystem     = StaticGeography.GetSolarSystemByID(src.SolarSystemID);
            FullLocation    = GetFullLocation(SolarSystem, src.StationName);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the station by the provided name.
 /// </summary>
 /// <param name="name">The station's name.</param>
 /// <returns>The station or null</returns>
 // Check if it's a conquerable outpost station, if not look in our data
 internal static Station GetByName(string name)
 => ConquerableStation.GetStationByName(name) ?? StaticGeography.GetStationByName(name);
Exemplo n.º 4
0
 /// <summary>
 /// Gets the station by the provided ID.
 /// </summary>
 /// <param name="id">The station's id.</param>
 /// <returns></returns>
 // Check if it's a conquerable outpost station, if not look in our data
 public static Station GetByID(long id) => ConquerableStation.GetStationByID(id) ?? StaticGeography.GetStationByID(id);