//获得卡牌添加图鉴 public void GetCardChangeIllustrated(int cardId) { PropertyValueIllustratedArray illustrated = UserProps.GetProperty_Custom(UserProperty.illustrated_data) as PropertyValueIllustratedArray; PropertyValueIllustratedArray haveIllustrated = UserProps.GetProperty_Custom(UserProperty.haveIllustrated_data) as PropertyValueIllustratedArray; illustrated.SetBit(cardId, true); haveIllustrated.SetBit(cardId, true); }
//初始化 图鉴列表 void InitIllustratedList() { PropertyValueIllustratedArray illustrated = User.Singleton.UserProps.GetProperty_Custom(UserProperty.illustrated_data) as PropertyValueIllustratedArray; PropertyValueIllustratedArray haveIllustrated = User.Singleton.UserProps.GetProperty_Custom(UserProperty.haveIllustrated_data) as PropertyValueIllustratedArray; foreach (KeyValuePair <int, HeroInfo> item in GameTable.HeroInfoTableAsset.m_list) { IllustratedInfo info = new IllustratedInfo(); info.m_id = item.Key; info.m_cardId = item.Value.CardId; info.m_type = item.Value.Type; info.m_occupation = item.Value.Occupation; info.m_rarity = item.Value.Rarity; info.m_gainLv = illustrated.GetBit(item.Key) ? (haveIllustrated.GetBit(item.Key) ? (int)ENGainLevel.enHave : (int)ENGainLevel.enSee) : (int)ENGainLevel.enNone; Illustrate.Singleton.m_cardList.Add(info); } }