Beispiel #1
0
 /// <summary>
 /// Loads the statistics list
 /// </summary>
 /// <param name="a">The json list of statistics</param>
 void LoadStatistics(JObject o)
 {
     if (o != null)
     {
         stats = new RawStats((int?)o["assists"],
             (int?)o["barracksKilled"],
             (int?)o["championsKilled"],
             (int?)o["combatPlayerScore"],
             (int?)o["consumablesPurchased"],
             (int?)o["damageDealtPlayer"],
             (int?)o["doubleKills"],
             (int?)o["firstBlood"],
             (int?)o["gold"],
             (int?)o["goldEarned"],
             (int?)o["goldSpent"],
             (int?)o["item0"],
             (int?)o["item1"],
             (int?)o["item2"],
             (int?)o["item3"],
             (int?)o["item4"],
             (int?)o["item5"],
             (int?)o["item6"],
             (int?)o["itemsPurchased"],
             (int?)o["killingSprees"],
             (int?)o["largestCriticalStrike"],
             (int?)o["largestKillingSpree"],
             (int?)o["largestMultiKill"],
             (int?)o["legendaryItemsCreated"],
             (int?)o["level"],
             (int?)o["magicDamageDealtPlayer"],
             (int?)o["magicDamageDealtToChampions"],
             (int?)o["magicDamageTaken"],
             (int?)o["minionsDenied"],
             (int?)o["minionsKilled"],
             (int?)o["neutralMinionsKilled"],
             (int?)o["neutralMinionsKilledEnemyJungle"],
             (int?)o["neutralMinionsKilledYourJungle"],
             (bool?)o["nexusKilled"],
             (int?)o["nodeCapture"],
             (int?)o["nodeCaptureAssist"],
             (int?)o["nodeNeutralizeAssist"],
             (int?)o["numDeaths"],
             (int?)o["numItemsBought"],
             (int?)o["objectivePlayerScore"],
             (int?)o["pentaKills"],
             (int?)o["physicalDamageDealtPlayer"],
             (int?)o["physicalDamageDealtToChampions"],
             (int?)o["physicalDamageTaken"],
             (int?)o["quadraKills"],
             (int?)o["sightWardsBought"],
             (int?)o["spell1Cast"],
             (int?)o["spell2Cast"],
             (int?)o["spell3Cast"],
             (int?)o["spell4Cast"],
             (int?)o["summonSpell1Cast"],
             (int?)o["summonSpell2Cast"],
             (int?)o["superMonsterKilled"],
             (int?)o["team"],
             (int?)o["teamObjective"],
             (int?)o["timePlayed"],
             (int?)o["totalDamageDealt"],
             (int?)o["totalDamageDealtToChampions"],
             (int?)o["totalDamageTaken"],
             (int?)o["totalHeal"],
             (int?)o["totalPlayerScore"],
             (int?)o["totalScoreRank"],
             (int?)o["totalTimeCrowdControlDealt"],
             (int?)o["totalUnitsHealed"],
             (int?)o["tripleKills"],
             (int?)o["trueDamageDealtPlayer"],
             (int?)o["trueDamageDealtToChampions"],
             (int?)o["trueDamageTaken"],
             (int?)o["turretsKilled"],
             (int?)o["unrealKills"],
             (int?)o["victoryPointTotal"],
             (int?)o["visionWardsBought"],
             (int?)o["wardKilled"],
             (int?)o["wardPlaced"],
             (bool?)o["win"]);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Loads the statistics list
 /// </summary>
 /// <param name="a">The json list of statistics</param>
 void LoadStatistics(JObject o)
 {
     if (o != null)
     {
         stats = new RawStats((int?)o["assists"],
                              (int?)o["barracksKilled"],
                              (int?)o["championsKilled"],
                              (int?)o["combatPlayerScore"],
                              (int?)o["consumablesPurchased"],
                              (int?)o["damageDealtPlayer"],
                              (int?)o["doubleKills"],
                              (int?)o["firstBlood"],
                              (int?)o["gold"],
                              (int?)o["goldEarned"],
                              (int?)o["goldSpent"],
                              (int?)o["item0"],
                              (int?)o["item1"],
                              (int?)o["item2"],
                              (int?)o["item3"],
                              (int?)o["item4"],
                              (int?)o["item5"],
                              (int?)o["item6"],
                              (int?)o["itemsPurchased"],
                              (int?)o["killingSprees"],
                              (int?)o["largestCriticalStrike"],
                              (int?)o["largestKillingSpree"],
                              (int?)o["largestMultiKill"],
                              (int?)o["legendaryItemsCreated"],
                              (int?)o["level"],
                              (int?)o["magicDamageDealtPlayer"],
                              (int?)o["magicDamageDealtToChampions"],
                              (int?)o["magicDamageTaken"],
                              (int?)o["minionsDenied"],
                              (int?)o["minionsKilled"],
                              (int?)o["neutralMinionsKilled"],
                              (int?)o["neutralMinionsKilledEnemyJungle"],
                              (int?)o["neutralMinionsKilledYourJungle"],
                              (bool?)o["nexusKilled"],
                              (int?)o["nodeCapture"],
                              (int?)o["nodeCaptureAssist"],
                              (int?)o["nodeNeutralizeAssist"],
                              (int?)o["numDeaths"],
                              (int?)o["numItemsBought"],
                              (int?)o["objectivePlayerScore"],
                              (int?)o["pentaKills"],
                              (int?)o["physicalDamageDealtPlayer"],
                              (int?)o["physicalDamageDealtToChampions"],
                              (int?)o["physicalDamageTaken"],
                              (int?)o["quadraKills"],
                              (int?)o["sightWardsBought"],
                              (int?)o["spell1Cast"],
                              (int?)o["spell2Cast"],
                              (int?)o["spell3Cast"],
                              (int?)o["spell4Cast"],
                              (int?)o["summonSpell1Cast"],
                              (int?)o["summonSpell2Cast"],
                              (int?)o["superMonsterKilled"],
                              (int?)o["team"],
                              (int?)o["teamObjective"],
                              (int?)o["timePlayed"],
                              (int?)o["totalDamageDealt"],
                              (int?)o["totalDamageDealtToChampions"],
                              (int?)o["totalDamageTaken"],
                              (int?)o["totalHeal"],
                              (int?)o["totalPlayerScore"],
                              (int?)o["totalScoreRank"],
                              (int?)o["totalTimeCrowdControlDealt"],
                              (int?)o["totalUnitsHealed"],
                              (int?)o["tripleKills"],
                              (int?)o["trueDamageDealtPlayer"],
                              (int?)o["trueDamageDealtToChampions"],
                              (int?)o["trueDamageTaken"],
                              (int?)o["turretsKilled"],
                              (int?)o["unrealKills"],
                              (int?)o["victoryPointTotal"],
                              (int?)o["visionWardsBought"],
                              (int?)o["wardKilled"],
                              (int?)o["wardPlaced"],
                              (bool?)o["win"]);
     }
 }