Exemplo n.º 1
0
 public override void Tick()
 {
     Block = AppBase.GetGemeObject <IMyTerminalBlock>(VarAttrs["name"]);
     if (Block != null)
     {
         OnWorking();
         base.Tick();
     }
     else
     {
         End();
     }
 }
Exemplo n.º 2
0
 public override void Begin()
 {
     Block = AppBase.GetGemeObject <IMyTerminalBlock>(GetAttribute("name"));
     if (Block != null)
     {
         strXML    = Block.CustomData;
         textPanel = Block as IMyTextPanel;
         OnStart();
     }
     else
     {
         End();
     }
 }
Exemplo n.º 3
0
        public override void Tick()
        {
            if (Block == null && VarAttrs.ContainsKey("name"))
            {
                Block = AppBase.GetGemeObject <T>(VarAttrs["name"]);
                if (Block == null)
                {
                    AppBase.Debug("Block with name '" + VarAttrs["name"] + "' not exist.");
                    End();
                }
            }

            if (!VarAttrs.ContainsKey("name"))
            {
                AppBase.Debug("Tag " + Type + " no have a attribute name.");
                End();
            }
        }
Exemplo n.º 4
0
 public override void Tick()
 {
     Block = AppBase.GetGemeObject <IMyTerminalBlock>(VarAttrs["name"]);
     if (Block != null)
     {
         if (Text != Block.CustomData)
         {
             Children.Clear();
             OnChanges();
             XML.Read(Block.CustomData, this);
             Text = Block.CustomData;
             ForChilds(ChilsBegins);
         }
         base.Tick();
         OnWorking();
         Text = Block.CustomData = ChildsToString();
     }
     else
     {
         End();
     }
 }