internal static string HelpStringOf(DebugConsole.DebugConsoleCommand command)
 {
     if (command.Usage == null)
     {
         return(string.Format("/{0} {1}: {2}", DebugConsole.COMMAND, command.Command, command.Help));
     }
     else
     {
         return(string.Format("/{0} {1} {2}: {3}", DebugConsole.COMMAND, command.Command, command.Usage, command.Help));
     }
 }
Example #2
0
        internal static List <Part> GetIndicatorLightsParts(DebugConsole.DebugConsoleCommand command)
        {
            List <Part> allParts      = command.GetVesselParts();
            List <Part> filteredParts = new List <Part>();

            for (int i = 0; i < allParts.Count; ++i)
            {
                Part part = allParts[i];
                if (IsIndicatorLightsPart(part))
                {
                    filteredParts.Add(part);
                }
            }
            return(filteredParts);
        }