private void OnRegisteredNewBestScore(Messages.PluginMessage msg) { Ranking.Rank ownRank = Ranking.GetOwnRank(); OnScreenLog.Add("New best score..."); OnScreenLog.Add(string.Concat(new object[] { "rank #", ownRank.rank, ", provisional rank #", ownRank.provisional, ", online id:", ownRank.get_onlineId(), ", score:", ownRank.score, ", comment:", ownRank.get_comment() })); }
private void LogRank(Ranking.Rank rank) { long num = 10L; DateTime dateTime = new DateTime((long)(rank.recordDate * (ulong)num)); OnScreenLog.Add(string.Concat(new object[] { "#", rank.rank, " (provisionally #", rank.provisional, "), online id:", rank.get_onlineId(), ", score:", rank.score, ", comment:", rank.get_comment(), ", recorded on:", dateTime.ToString() })); if (rank.gameInfoSize > 0) { int num2 = 0; string text = string.Empty; byte[] gameInfoData = rank.get_gameInfoData(); for (int i = 0; i < gameInfoData.Length; i++) { byte b = gameInfoData[i]; text = text + b.ToString() + ","; if (num2++ > 8) { break; } } text += "..."; OnScreenLog.Add(string.Concat(new object[] { " dataSize: ", rank.gameInfoSize, ", data: ", text })); } }