Exemplo n.º 1
0
        internal EquipmentGroupByLevel(EquipmentGroupByMasterID rpOwner, EquipmentGroupingKey rpKey, IEnumerable <Equipment> rpEquipment)
        {
            r_Owner = rpOwner;

            Key      = rpKey;
            r_Fleets = new ListDictionary <int, EquipmentGroupByFleet>();

            Count = rpEquipment.Count();

            Equipment[] rUnequipedEquipment;
            if (!KanColleGame.Current.Port.UnequippedEquipment.TryGetValue(r_Owner.Info.Type, out rUnequipedEquipment) || rUnequipedEquipment == null)
            {
                RemainingCount = 0;
            }
            else
            {
                RemainingCount = rUnequipedEquipment.Count(r => r.Info == r_Owner.Info && r.Level == Key.Level && r.Proficiency == Key.Proficiency);
            }
        }
Exemplo n.º 2
0
 internal void Update(Ship rpShip, EquipmentGroupingKey rpLevel) => r_LevelMap[rpLevel].Update(rpShip);