Пример #1
0
 public static List <CardGrooveUpdateInfo> FindCardGrooveUpdate(int type)
 {
     if (CardMgr.m_grooveUpdates == null)
     {
         CardMgr.Init();
     }
     if (CardMgr.m_grooveUpdates.ContainsKey(type))
     {
         return(CardMgr.m_grooveUpdates[type]);
     }
     return(null);
 }
Пример #2
0
 public static List <CardTemplateInfo> FindCardBox(int cardId)
 {
     if (CardMgr.m_cardBoxs == null)
     {
         CardMgr.Init();
     }
     if (CardMgr.m_cardBoxs.ContainsKey(cardId))
     {
         return(CardMgr.m_cardBoxs[cardId]);
     }
     return(null);
 }
Пример #3
0
        public static List <CardTemplateInfo> GetAllCard()
        {
            if (CardMgr.m_cardBox == null)
            {
                CardMgr.Init();
            }
            List <CardTemplateInfo>            list       = new List <CardTemplateInfo>();
            Dictionary <int, CardTemplateInfo> dictionary = new Dictionary <int, CardTemplateInfo>();

            CardTemplateInfo[] cardBox = CardMgr.m_cardBox;
            for (int i = 0; i < cardBox.Length; i++)
            {
                CardTemplateInfo cardTemplateInfo = cardBox[i];
                if (!dictionary.Keys.Contains(cardTemplateInfo.CardID))
                {
                    if (cardTemplateInfo.CardID != 314150)
                    {
                        list.Add(cardTemplateInfo);
                    }
                    dictionary.Add(cardTemplateInfo.CardID, cardTemplateInfo);
                }
            }
            return(list);
        }