Example #1
0
        public void AddPvpBattleReport(RankArenaReportProtoData data)
        {
            System.DateTime     time = TimeUtil.FormatTime((int)(data.fightTime / 1000));
            PvpBattleReportInfo info = new PvpBattleReportInfo(data.id, time, data.isWin, data.isChallenger, data.opponentRoleName, data.srcRankNo != data.desRankNo, data.desRankNo);

            _battleReportDictionary.Add(info.id, info);
        }
Example #2
0
 public static int ComparePvpBattleReportInfo(PvpBattleReportInfo a, PvpBattleReportInfo b)
 {
     return((int)((a.time.Ticks - b.time.Ticks + 0.0) / 10000000L));
 }