public override void Tick() { Block = AppBase.GetGemeObject <IMyTerminalBlock>(VarAttrs["name"]); if (Block != null) { OnWorking(); base.Tick(); } else { End(); } }
public override void Begin() { Block = AppBase.GetGemeObject <IMyTerminalBlock>(GetAttribute("name")); if (Block != null) { strXML = Block.CustomData; textPanel = Block as IMyTextPanel; OnStart(); } else { End(); } }
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(); } }
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(); } }