// Token: 0x06001CF3 RID: 7411 RVA: 0x00086C80 File Offset: 0x00084E80
 private static void OnServerGameOver(Run run, GameResultType result)
 {
     if (result != GameResultType.Lost)
     {
         foreach (PlayerStatsComponent playerStatsComponent in PlayerStatsComponent.instancesList)
         {
             if (playerStatsComponent.playerCharacterMasterController.isConnected)
             {
                 StatSheet      currentStats = playerStatsComponent.currentStats;
                 PerBodyStatDef totalWins    = PerBodyStatDef.totalWins;
                 GameObject     bodyPrefab   = playerStatsComponent.characterMaster.bodyPrefab;
                 currentStats.PushStatValue(totalWins.FindStatDef(((bodyPrefab != null) ? bodyPrefab.name : null) ?? ""), 1UL);
             }
         }
     }
 }
Exemple #2
0
 // Token: 0x06001CEC RID: 7404 RVA: 0x0007BF5E File Offset: 0x0007A15E
 public void PushStatValue([NotNull] PerBodyStatDef perBodyStatDef, int bodyIndex, double statValue)
 {
     this.PushStatValue(perBodyStatDef.FindStatDef(bodyIndex), statValue);
 }
Exemple #3
0
 public string GetStatValueString([NotNull] PerBodyStatDef perBodyStatDef, [NotNull] string bodyName)
 {
     return(this.GetStatValueString(perBodyStatDef.FindStatDef(bodyName)));
 }
Exemple #4
0
 // Token: 0x06001CF3 RID: 7411 RVA: 0x0007C02C File Offset: 0x0007A22C
 public double GetStatValueDouble([NotNull] PerBodyStatDef perBodyStatDef, [NotNull] string bodyName)
 {
     return(this.GetStatValueDouble(perBodyStatDef.FindStatDef(bodyName)));
 }
 // Token: 0x06001D0D RID: 7437 RVA: 0x00087776 File Offset: 0x00085976
 public void PushStatValue([NotNull] PerBodyStatDef perBodyStatDef, [NotNull] string bodyName, double statValue)
 {
     this.PushStatValue(perBodyStatDef.FindStatDef(bodyName), statValue);
 }