Beispiel #1
0
 public void TranslatePlayerInfo(D2Objects.PlayerInfo info)
 {
     foreach (var chara in info.Response.characters.data.Values)
     {
         chara.type           = db.GetCharacterType(chara.genderHash, chara.raceHash, chara.classHash);
         chara.dateLastPlayed = GetRealTime(chara.dateLastPlayed);
     }
 }
Beispiel #2
0
        public static string ToString(D2Objects.PlayerInfo info)
        {
            var sb = new StringBuilder();

            sb.AppendLine();
            sb.Append($"[{info.Response.profile.data.userInfo.displayName}({info.Response.profile.data.userInfo.membershipId})] ");
            foreach (var chara in info.Response.characters.data.Values)
            {
                sb.Append($"{chara.type}-{chara.light} ");
            }

            return(sb.ToString().Trim());
        }