private void AutoRecharge(MyComputerPorts port) { if (!this.Auto_Recharge) { return; } if (port == MyComputerPorts.PortA) { if (this.portAInfo.NeedRecharge()) { this.Harvester.RechargePort(); } } if (port == MyComputerPorts.PortB) { if (this.portBInfo.NeedRecharge()) { this.Harvester.RechargePort(); } } if (port == MyComputerPorts.PortC) { if (this.portCInfo.NeedRecharge()) { this.Harvester.RechargePort(); } } }
private void AutoUpgrade(MyComputerPorts port) { if (!this.Auto_Upgrade) { return; } FirewallPortButtons priority = FirewallPortButtons.Charge; if (port == MyComputerPorts.PortA) { priority = portAInfo.GetPriority(); } if (port == MyComputerPorts.PortB) { priority = portBInfo.GetPriority(); } if (port == MyComputerPorts.PortC) { priority = portCInfo.GetPriority(); } if (priority == FirewallPortButtons.Difficulty && this.CanUpgrade(FirewallPortButtons.Difficulty)) { this.Harvester.RaiseDifficulty(); } if (priority == FirewallPortButtons.Regen && this.CanUpgrade(FirewallPortButtons.Regen)) { this.Harvester.RaiseRegen(); } if (priority == FirewallPortButtons.MaxCharge && this.CanUpgrade(FirewallPortButtons.MaxCharge)) { this.Harvester.RaiseMaxCharge(); } }
public void OpenPortShop(MyComputerPorts port) { switch (port) { case MyComputerPorts.PortA: this.References.WindowComputerRef.Ports.PortA.InvokeMember("click"); break; case MyComputerPorts.PortB: this.References.WindowComputerRef.Ports.PortB.InvokeMember("click"); break; case MyComputerPorts.PortC: this.References.WindowComputerRef.Ports.PortC.InvokeMember("click"); break; default: break; } }