Example #1
0
 private void ItemsHandler(getmember_slotitem[] api)
 {
     if (Equipments == null)
     {
         Equipments = new IDTable <int, Equipment>(api.Select(x => new Equipment(x)));
     }
     else
     {
         Equipments.UpdateAll(api, x => x.api_id);
     }
     Staff.Current.Admiral.EquipCount = api.Length;
     Ships?.ForEach(x => x.TryUpdateEquip());
 }