/// <summary> /// Gets the conquerable station with the provided ID. /// </summary> internal static ConquerableStation GetStation(long id) { // Ensure list importation EnsureImportation(); ConquerableStation result = null; s_conqStationsByID.TryGetValue(id, out result); return(result); }
/// <summary> /// Gets the station. /// </summary> /// <param name="id">The ID of the installation.</param> /// <returns>Name of the installation.</returns> internal string GetInstallation(long id) { // Look for the station in datafile Station station = StaticGeography.GetStation(id); // Is it a conquerable outpost station ? if (station == null) { station = ConquerableStation.GetStation(id); } // Still nothing ? Then it's a starbase structure // and will be assigned manually based on activity if (station == null) { return(m_activity == BlueprintActivity.Manufacturing ? "POS - Assembly Array" : "POS - Laboratory"); } return(station.Name); }
/// <summary> /// Gets the station of an order. /// </summary> /// <param name="src"></param> /// <returns></returns> private static Station GetStationByID(long id) { // Look for the station in datafile Station station = StaticGeography.GetStation(id); // We failed ? Then it's a conquerable outpost station if (station == null) { station = ConquerableStation.GetStation(id); } // We failed again ? It's not in any data we can access // We set it to a fixed one and notify about it in the trace file if (station == null) { station = StaticGeography.GetStation(60013747); EveClient.Trace("Could not find station id {0}", id); EveClient.Trace("Setting to {0}", station.Name); } return(station); }