Beispiel #1
0
        public Dictionary <string, string> DataToDict()
        {
            Dictionary <string, string> result = new Dictionary <string, string>
            {
                ["experience"]        = Experience.ToString(),
                ["kills"]             = Kills.ToString(),
                ["leaks"]             = Leaks.ToString(),
                ["builds"]            = Builds.ToString(),
                ["sends"]             = Sends.ToString(),
                ["earned_tangos"]     = EarnedTangos.ToString(),
                ["won_games"]         = WonGames.ToString(),
                ["won_duels"]         = WonDuels.ToString(),
                ["lost_games"]        = LostGames.ToString(),
                ["lost_duels"]        = LostDuels.ToString(),
                ["win_rate"]          = WinRate.ToString(),
                ["duel_win_rate"]     = DuelWinRate.ToString(),
                ["rating"]            = Rating.ToString(),
                ["earned_gold"]       = EarnedGold.ToString(),
                ["gold_per_minute"]   = GoldPerMinute.ToString(),
                ["tangos_per_minute"] = TangosPerMinute.ToString(),
                ["time_played"]       = TimePlayed.ToString()
            };

            // foreach (var data in FractionDatas) {
            //     result[KilledPrefix + data.FractionName] = data.Killed.ToString();
            //     result[PlayedPrefix + data.FractionName] = data.Played.ToString();
            // }
            foreach (var pair in PlayedFractions)
            {
                result[pair.Key] = pair.Value.ToString();
            }
            // foreach (var pair in FractionKills)
            //     result[pair.Key] = pair.Value.ToString();
            return(result);
        }
 public override string ToString()
 {
     return
         (string.Format(
              "User=[{0}], Rank={1}, TimePlayed={2}, Skill={3}, KillDeathRatio={4}, Wins={5}, " +
              "Losses={6}, WinLoseRatio={7}, Score=[{8}], ScorePerMinute={9}, KitProgressions=[{10}],  " +
              "TopWeapons={11}, TopVehicles=[{12}], TopGadgets=[{13}], Awards=[{14}], Statistics=[{15}]",
              User, Rank, TimePlayed.ToString(), Skill, KillDeathRatio, Wins, Losses, WinLoseRatio,
              Score, ScorePerMinute, KitProgressions, Weapons, Vehicles, Gadgets, Awards, Statistics));
 }