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