Esempio n. 1
0
 private IMyTextPanel GetPanel()
 {
     if (_panel == null)
     {
         _panel = GTS.GetBlockWithName(_name) as IMyTextPanel;
         InitPanel();
     }
     return(_panel);
 }
Esempio n. 2
0
 public IMyMotorStator GetRotor()
 {
     if (_motor == null)
     {
         _motor = GTS.GetBlockWithName(GetRotorName()) as IMyMotorStator;
         if (_motor != null)
         {
             Init();
         }
     }
     return(_motor);
 }
Esempio n. 3
0
 public Block(string stringId)
 {
     block = GTS.GetBlockWithName(stringId);
 }