예제 #1
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);
예제 #2
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);