public static AutopilotCommands GetOrCreate(IMyTerminalBlock block) { if (Globals.WorldClosed || block.Closed) { return(null); } AutopilotCommands result; if (!Registrar.TryGetValue(block, out result)) { result = new AutopilotCommands(block); } return(result); }
public TextPanelMonitor(IMyTextPanel textPanel, AutopilotCommands autoCommands, string identifier) { this.TextPanel = textPanel; this.m_autoCommands = autoCommands; this.m_identifier = identifier; }