Example #1
0
        /// <summary>
        /// Removes the specified equipment ID from the ship's info list based on set equipment type.
        /// </summary>
        public void RemoveItem(string itemID)
        {
            ShipInfo selectedShip = shipDataServicer.GetShipItem(shipID);

            if (equipmentType == EquipmentType.ForwardWeapon)
            {
                selectedShip.RemoveWeapon(WeaponConfiguration.Forward, itemID);
            }

            if (equipmentType == EquipmentType.TurrentWeapon)
            {
                selectedShip.RemoveWeapon(WeaponConfiguration.Turrent, itemID);
            }

            ResetEquipmentList();
        }