Example #1
0
 internal void Update(kcsapi_remodel_slot source)
 {
     if (source != null & source.api_after_material.Length >= 8)
     {
         this.DevelopmentMaterials = source.api_after_material[6];
         this.RemodelKitMaterials  = source.api_after_material[7];
     }
 }
Example #2
0
        private void RemodelSlotItem(kcsapi_remodel_slot source)
        {
            if (source.api_after_slot == null)
            {
                return;
            }

            this.SlotItems[source.api_after_slot.api_id]
            ?.Remodel(source.api_after_slot.api_level, source.api_after_slot.api_slotitem_id);
        }
Example #3
0
 internal void RemoveFromRemodel(kcsapi_remodel_slot source)
 {
     if (source.api_use_slot_id != null)
     {
         foreach (var id in source.api_use_slot_id)
         {
             this.SlotItems.Remove(id);
         }
     }
 }
Example #4
0
        internal void RemoveFromRemodel(kcsapi_remodel_slot source)
        {
            if (source.api_use_slot_id != null)
            {
                foreach (var id in source.api_use_slot_id)
                {
                    this.SlotItems.Remove(id);
                }
            }

            this.SlotItems.Remove(source.api_after_slot.api_id);
            this.SlotItems.Add(new SlotItem(source.api_after_slot));
            this.RaiseSlotItemsChanged();
        }
Example #5
0
        private void RemodelSlotItem(kcsapi_remodel_slot source)
        {
            if (source.api_after_slot == null)
            {
                return;
            }

            var target = this.SlotItems[source.api_after_slot.api_id];

            if (target != null)
            {
                target.Remodel(source.api_after_slot.api_level, source.api_after_slot.api_slotitem_id);
            }
        }
Example #6
0
        private void DestroyItem(kcsapi_remodel_slot data)
        {
            if (data.api_use_slot_id != null)
            {
                if (data.api_use_slot_id.Length >= 1)
                {
                    for (int i = 0; i < data.api_use_slot_id.Length; i++)
                    {
                        this.SlotItems.Remove(data.api_use_slot_id[i]);
                    }

                    this.RaiseSlotItemsChanged();
                }
            }
        }