Beispiel #1
0
 private static void GetGuildMemberGradeAndStar(GuildMemInfo guildMemInfo, out int rankGrade, out int rankStar)
 {
     if (guildMemInfo != null)
     {
         rankGrade = CLadderSystem.ConvertEloToRank(guildMemInfo.stBriefInfo.dwScoreOfRank);
         rankStar  = CLadderSystem.GetCurXingByEloAndRankLv(guildMemInfo.stBriefInfo.dwScoreOfRank, (uint)rankGrade);
     }
     else
     {
         rankGrade = 0;
         rankStar  = 0;
     }
 }
Beispiel #2
0
 private static void GetFriendRankGradeAndStar(COMDT_FRIEND_INFO friendInfo, out int rankGrade, out int rankStar)
 {
     if (friendInfo != null && friendInfo.RankVal != null)
     {
         uint elo = friendInfo.RankVal[7];
         rankGrade = CLadderSystem.ConvertEloToRank(elo);
         rankStar  = CLadderSystem.GetCurXingByEloAndRankLv(elo, (uint)rankGrade);
     }
     else
     {
         rankGrade = 0;
         rankStar  = 0;
     }
 }