public override void Refresh(object data) { if (this.mUserData == data) { return; } this.mUserData = (BillboardInfoData)data; this.mRankData = (RankData)this.mUserData.userData; int rank = this.GetRank(); foreach (OreInfo current in Globals.Instance.AttDB.OreDict.Values) { if (current != null && current.DayRankMin <= rank && (rank <= current.DayRankMax || current.DayRankMax == 0)) { this.mInfo = current; break; } } this.Refresh(); }
public GUIGuildMinesRewardDescData(bool isTarget, OreInfo info, GUIGuildMinesRewardDescData.TakeRewardCallback cb) { this.isTarget = isTarget; this.mInfo = info; this.TakeRewardEvent = cb; }