public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); if (OnRemovePreInstallUpgrade != null) { OnRemovePreInstallUpgrade(InstalledUpgrade); } InstalledUpgrade = null; }
public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); OnRemovePreInstallUpgrade?.Invoke(InstalledUpgrade); InstalledUpgrade = null; if (DebugManager.FreeMode) { if (HostShip.UpgradeBar.GetUpgradeSlots().Count(n => n.Type == UpgradeType.Omni && n.IsEmpty) > 1) { HostShip.UpgradeBar.RemoveEmptySlot(UpgradeType.Omni); } } }
private void InstallUpgrade() { //TODO: Remove host paramater InstalledUpgrade.AttachToShip(InstalledUpgrade.Host); }
public void RemovePreInstallUpgrade() { InstalledUpgrade.PreDettachFromShip(); InstalledUpgrade = null; }