public void Main(string argument, UpdateType updateSource) { var debug = string.Empty; //AutoMove.Get(GridTerminalSystem).MoveAll(Welder1DesiredQuantities.Keys.ToList(), "S.HERM Cargo Components Container", new List<string>{ "Welder 1 Cargo Container" }); //AutoMove.Get(GridTerminalSystem).MoveAll(ores, "S.HERM Cargo Ore / Ingot Container", new List<string>() { }); //AutoMove.Get(GridTerminalSystem).MoveAll(new List<string>() { "Ice" }, "S.HERM Cargo Ice Container", new List<string>() { }); // Fill welder contents //debug = AutoMove.Get(GridTerminalSystem).MoveToQuota("S.HERM Cargo Components Container", "Welder 1 Cargo Container", Welder1DesiredQuantities); // Show contents of components container ShowContainerContents.Get(GridTerminalSystem).PrintContents("S.HERM LCD Components", "S.HERM Cargo Components Container", "=== S.HERM Cargo Components ==="); // Show contents of ores container ShowContainerContents.Get(GridTerminalSystem).PrintContents("S.HERM LCD Ores", "S.HERM Cargo Ore / Ingot Container", "=== S.HERM Cargo Ore / Ingot ==="); // Show contents of welder1 container ShowContainerContents.Get(GridTerminalSystem).PrintContents("S.HERM LCD Welder 1", "Welder 1 Cargo Container", "=== Welder 1 contents ==="); //Debug messages var lcds = GridBlocksHelper.Prefixed(GridTerminalSystem, "S.HERM LCD Airlock debug").GetLcdsPrefixed(); if (lcds.Count == 0) { throw new Exception(string.Format("No lcd found with name starting with {0}", "S.HERM LCD Airlock debug")); } // Print the message on the lcd(s) LcdOutputHelper.ShowMessageOnLcd(lcds[0], new LcdOutputHelper.LcdMessage("Debug:\n" + debug)); }
public void PrintResultsOnLcd(string lcdName, string results, string title = "=================================", int timer = 0) { //Get the lcd(s) var lcds = GridBlocksHelper.Prefixed(GTS, lcdName).GetLcdsPrefixed(); if (lcds.Count == 0) { throw new Exception(string.Format("No lcd found with name starting with {0}", lcdName)); } // Print the message on the lcd(s) LcdOutputHelper.ShowResultWithProgress(lcds, results, title, timer); }