public static PadSize ToPadSize(this RelevantStationType type) { switch (type) { case RelevantStationType.Planetary: case RelevantStationType.OrbitalLarge: return(PadSize.Large); case RelevantStationType.OrbitalMedium: return(PadSize.Medium); case RelevantStationType.Unlandable: return(PadSize.None); default: return(PadSize.Unknown); } }
internal void SetupCachedProperties(StreamingContext context) { RelevantType = Type.ToRelevantStationType(); LargestPadAvailable = RelevantType.ToPadSize(); MaterialTrader = getMatTrader(); }