示例#1
0
 public void RemovePreInstallUpgrade()
 {
     InstalledUpgrade.PreDettachFromShip();
     if (OnRemovePreInstallUpgrade != null)
     {
         OnRemovePreInstallUpgrade(InstalledUpgrade);
     }
     InstalledUpgrade = null;
 }
示例#2
0
        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);
                }
            }
        }
示例#3
0
 private void InstallUpgrade()
 {
     //TODO: Remove host paramater
     InstalledUpgrade.AttachToShip(InstalledUpgrade.Host);
 }
示例#4
0
 public void RemovePreInstallUpgrade()
 {
     InstalledUpgrade.PreDettachFromShip();
     InstalledUpgrade = null;
 }