예제 #1
0
        public void InitMyCards(MyCardRes res)
        {
            UserCardList = new List <UserCardVo>();
            for (int i = 0; i < res.UserCards.Count; i++)
            {
                UserCardVo vo = ParseUserCardVo(res.UserCards[i]);
                // Debug.LogError(vo.CardId+":"+vo.RecollectionCount);
                UserCardList.Add(vo);
            }

            UserCardList.Sort();
        }
예제 #2
0
 private void OnCardRefresh(MyCardRes res)
 {
     GlobalData.CardModel.InitMyCards(res);
     if (View.UserCardVo != null)
     {
         UserCardVo vo = GlobalData.CardModel.GetUserCardById(View.UserCardVo.CardId);
         View.SelectedCard(vo);
     }
     else if (_model.JumpData != null)
     {
         UserCardVo vo = GlobalData.CardModel.GetUserCardById((int)_model.JumpData.PostData);
         View.SelectedCard(vo);
     }
 }
예제 #3
0
 private void OnGetMyCard(MyCardRes res)
 {
     GlobalData.CardModel.InitMyCards(res);
 }
예제 #4
0
 private void OnGetCardList(MyCardRes res)
 {
     GlobalData.CardModel.InitMyCards(res);
     View.SetMyCardData(GlobalData.CardModel.UserCardList);
 }