Ejemplo n.º 1
0
        public ChipClientSlotInfo GetSlotInfo(string userMonsterId)
        {
            ChipClientSlotInfo result = null;
            int key = int.Parse(userMonsterId);

            this.monsterSlotInfoList.TryGetValue(key, out result);
            return(result);
        }
Ejemplo n.º 2
0
 public void AddMonsterSlotList(GameWebAPI.RespDataCS_MonsterSlotInfoListLogic.SlotInfo[] slotInfoList)
 {
     if (slotInfoList == null)
     {
         return;
     }
     for (int i = 0; i < slotInfoList.Length; i++)
     {
         ChipClientSlotInfo value = new ChipClientSlotInfo(slotInfoList[i]);
         this.monsterSlotInfoList.Add(slotInfoList[i].userMonsterId, value);
     }
 }
Ejemplo n.º 3
0
        public void RemoveChipData(string userMonsterIdList, bool delete = true)
        {
            ChipClientSlotInfo slotInfo = this.GetSlotInfo(userMonsterIdList);

            foreach (ChipClientEquip chipClientEquip in slotInfo.GetChipEquip())
            {
                GameWebAPI.RespDataCS_ChipListLogic.UserChipList userChip = ChipDataMng.GetUserChip(chipClientEquip.userChipId);
                userChip.resetUserMonsterID();
            }
            if (delete)
            {
                this.DeleteMonsterSlot(userMonsterIdList);
            }
        }