public CFriendRecruit.RecruitReward GetRecruitReward(ulong ullUid, uint dwLogicWorldId, ushort rewardID) { CFriendRecruit.RecruitData zhaoMuZhe = this.GetZhaoMuZhe(ullUid, dwLogicWorldId); if (zhaoMuZhe != null) { return(zhaoMuZhe.GetReward(rewardID)); } if (this.m_beiZhaoMuZhe.IsEqual(ullUid, dwLogicWorldId)) { return(this.m_beiZhaoMuZhe.GetReward(rewardID)); } return(null); }
public void ParseConfig(CFriendRecruit.RecruitData data) { for (int i = 0; i < this.m_rewardConfig.get_Count(); i++) { ResRecruitmentReward resRecruitmentReward = this.m_rewardConfig.get_Item(i); if (data.type == resRecruitmentReward.bRecruimentType) { CFriendRecruit.RecruitReward reward = data.GetReward(resRecruitmentReward.wID); if (reward == null || reward.state != CFriendRecruit.RewardState.Getted) { data.SetReward(resRecruitmentReward.wID, CFriendRecruit.RewardState.Normal); } } } }