public AutopilotTerminal(IMyCubeBlock block) { this.m_logger = new Logger("AutopilotTerminal", block); this.m_block = block as IMyTerminalBlock; byte index = 0; this.m_autopilotControl = new EntityValue<bool>(block, index++, Static.autopilotControl.UpdateVisual, Saver.Instance.LoadOldVersion(69) && ((MyShipController)block).ControlThrusters); this.m_autopilotCommands = new EntityStringBuilder(block, index++, Static.autopilotCommands.UpdateVisual); m_block.AppendingCustomInfo += AppendingCustomInfo; Registrar.Add(block, this); m_logger.debugLog("Initialized", Logger.severity.INFO); }
public ProgrammableBlock(IMyCubeBlock block) : base(block) { m_logger = new Logger(GetType().Name, block); m_progBlock = block as Ingame.IMyProgrammableBlock; m_networkClient = new RelayClient(block, HandleMessage); byte index = 0; m_handleDetectedTerminal_ev = new EntityValue<bool>(block, index++, UpdateVisual); m_blockCountList_ev = new EntityStringBuilder(block, index++, () => { UpdateVisual(); m_blockCountList_btl = new BlockTypeList(m_blockCountList_sb.ToString().LowerRemoveWhitespace().Split(',')); }); Registrar.Add(block, this); }
public override string ToString() { return(EntityStringBuilder.BuildString(this, "Id", "Name")); }
public override string ToString() { return(EntityStringBuilder.BuildString(this, "Id", "Title", "ReleaseYear")); }