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); }
/// <summary> /// Gets a code representing the cache the image would be stored under. /// </summary> /// <returns></returns> public int GetCacheCode() { return(45415 ^ (TimePlayed.GetHashCode() << 7) ^ (Avatar.GetHashCode() << 7) ^ (Name.GetHashCode() << 7) ^ (Rank.GetHashCode() << 7)); }
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)); }
public bool Equals(Scrobble other) { return(other != null && IgnoredReason == other.IgnoredReason && Artist == other.Artist && AlbumArtist == other.AlbumArtist && Album == other.Album && Track == other.Track && TimePlayed.Equals(other.TimePlayed) && ChosenByUser == other.ChosenByUser && EqualityComparer <TimeSpan?> .Default.Equals(Duration, other.Duration)); }
public Vehicle(IJson json) { ID = "vehicles"; Code = ID + "." + json.GetValue("code").ToString(); Name = json.GetValue("code").ToString(); Kill = json.GetValue("kills").GetValue("displayValue").ToString(); KPM = json.GetValue("killsPerMinute").GetValue("displayValue").ToString(); TimePlayed = json.GetValue("timePlayed").GetValue("displayValue").ToString(); Destroyed = json.GetValue("destroyed").GetValue("displayValue").ToString(); TimePlayed = TimePlayed.Replace("h", "时").Replace("m", "分").Replace("s", "秒"); }
// Use this for initialization private void Awake() { _timePlayed = GameObject.Find("GameManager").GetComponent <TimePlayed> (); timePlayed = ""; subMenuIdentifier = MenuID.STATS_MENU; buttonSelected = 0; buttonsStart = 0; buttonsEnd = 2; subMenuHolder = new GameObject(name); base.Start(); InitializeButtons(); base.PopulateButtons(); base.PopulateTextMeshes(); }
public Weapon(IJson json) { ID = "weapons"; Code = ID + "." + json.GetValue("code").ToString(); Name = json.GetValue("code").ToString(); Kill = json.GetValue("kills").GetValue("displayValue").ToString(); KPM = json.GetValue("killsPerMinute").GetValue("displayValue").ToString(); TimePlayed = json.GetValue("timePlayed").GetValue("displayValue").ToString(); ShotsFired = json.GetValue("shotsFired").GetValue("displayValue").ToString(); ShotsHit = json.GetValue("shotsHit").GetValue("displayValue").ToString(); ShotsAccuracy = json.GetValue("ShotsAccuracy").GetValue("displayValue").ToString(); Headshots = json.GetValue("headshots").GetValue("displayValue").ToString(); TimePlayed = TimePlayed.Replace("h", "时").Replace("m", "分").Replace("s", "秒"); }
public string Format(string frontline = " ") { return(frontline + BaseUtils.FieldBuilder.BuildSetPad(Environment.NewLine + frontline, "Credits:;cr;N0".T(EDTx.MulticrewClass_Credits), CreditsEarned, "Time Played:;;N0".T(EDTx.CQCClass_TimePlayed), TimePlayed.SecondsToWeeksDaysHoursMinutesSeconds(), "KD Ratio:;;N".T(EDTx.CQCClass_KDRatio), KD, "Kills:;;N0".T(EDTx.CQCClass_Kills), Kills, "Win/Loss:;;N".T(EDTx.CQCClass_Win), WL)); }
public string Format(string frontline = " ") { return(frontline + BaseUtils.FieldBuilder.BuildSetPad(Environment.NewLine + frontline, "Systems Visited:;;N0".T(EDTx.ExplorationClass_SystemsVisited), SystemsVisited, "Profits:;cr;N0".T(EDTx.ExplorationClass_Profits), ExplorationProfits, "Level 2 Scans:;;N0".T(EDTx.ExplorationClass_Level2Scans), PlanetsScannedToLevel2, "Level 3 Scans:;;N0".T(EDTx.ExplorationClass_Level3Scans), PlanetsScannedToLevel3, "Efficient Scans:;;N0".T(EDTx.ExplorationClass_EfficientScans), EfficientScans, "Highest Payout:;cr;N0".T(EDTx.ExplorationClass_HighestPayout), HighestPayout, "Total Distance:;;N0".T(EDTx.ExplorationClass_TotalDistance), TotalHyperspaceDistance, "No of Jumps:;;N0".T(EDTx.ExplorationClass_NoofJumps), TotalHyperspaceJumps, "Greatest Distance:;;N0".T(EDTx.ExplorationClass_GreatestDistance), GreatestDistanceFromStart, "Time Played:".T(EDTx.ExplorationClass_TimePlayed), TimePlayed.SecondsToWeeksDaysHoursMinutesSeconds())); }
public string Format(string frontline = " ") { return(frontline + BaseUtils.FieldBuilder.BuildSetPad(Environment.NewLine + frontline, "Time Played:;;N0", TimePlayed.SecondsToWeeksDaysHoursMinutesSeconds(), "KD Ratio:;;N", KD, "Kills:;;N0", Kills, "Win/Loss:;;N", WL)); }
void InitTimeManager() { _timePlayed = gameObject.GetComponent <TimePlayed> (); }