public void SetEmptyChipEquip(string userMonsterId) { GameWebAPI.RespDataCS_MonsterSlotInfoListLogic.SlotInfo slotInfo = new GameWebAPI.RespDataCS_MonsterSlotInfoListLogic.SlotInfo { userMonsterId = int.Parse(userMonsterId) }; this.monsterSlotInfo = new ChipClientSlotInfo(slotInfo); }
public ChipClientSlotInfo(GameWebAPI.RespDataCS_MonsterSlotInfoListLogic.SlotInfo slotInfo) { this.monsterSlotInfo = slotInfo; this.equipList = new List <ChipClientEquip>(); if (slotInfo.equip != null) { for (int i = 0; i < slotInfo.equip.Length; i++) { GameWebAPI.RespDataCS_ChipListLogic.UserChipList userChip = ChipDataMng.GetUserChip(slotInfo.equip[i].userChipId); this.equipList.Add(new ChipClientEquip(slotInfo.equip[i], userChip.chipId)); } } }