Beispiel #1
0
        /// <summary>
        /// Dismounts mounted module
        /// </summary>
        /// <param name="index">Index of module to dismount</param>
        /// <returns>True if successful.</returns>
        public virtual bool DismountModule(StationModuleBase module)
        {
            if (modules != null)
            {
                module.OnDismount();

                return(modules.Remove(module));
            }
            else
            {
                return(false);
            }
        }