Beispiel #1
0
        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);
        }
Beispiel #2
0
 public TextPanelMonitor(IMyTextPanel textPanel, AutopilotCommands autoCommands, string identifier)
 {
     this.TextPanel      = textPanel;
     this.m_autoCommands = autoCommands;
     this.m_identifier   = identifier;
 }