private static int CompareLevel(COLOSSEUM_RANK_REWARD x, COLOSSEUM_RANK_REWARD y) { if (x.m_nRank_Min < y.m_nRank_Min) { return(-1); } return(1); }
public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { COLOSSEUM_RANK_REWARD cOLOSSEUM_RANK_REWARD = new COLOSSEUM_RANK_REWARD(); cOLOSSEUM_RANK_REWARD.SetData(data); NrTSingleton <NrTable_ColosseumRankReward_Manager> .Instance.AddRewardInfo(cOLOSSEUM_RANK_REWARD); } return(true); }
public void AddRewardInfo(COLOSSEUM_RANK_REWARD _value) { if (!this.m_sdGradeRankReward.ContainsKey(_value.m_nGrade)) { List <COLOSSEUM_RANK_REWARD> value = new List <COLOSSEUM_RANK_REWARD>(); this.m_sdGradeRankReward.Add(_value.m_nGrade, value); } this.m_sdGradeRankReward[_value.m_nGrade].Add(_value); this.m_sdGradeRankReward[_value.m_nGrade].Sort(new Comparison <COLOSSEUM_RANK_REWARD>(NrTable_ColosseumRankReward_Manager.CompareLevel)); }