// Token: 0x06001CC5 RID: 7365 RVA: 0x000862A8 File Offset: 0x000844A8 private static PerBodyStatDef Register(string prefix, StatRecordType recordType, StatDataType dataType, StatDef.DisplayValueFormatterDelegate displayValueFormatter = null) { PerBodyStatDef perBodyStatDef = new PerBodyStatDef(prefix, recordType, dataType, displayValueFormatter); PerBodyStatDef.instancesList.Add(perBodyStatDef); return(perBodyStatDef); }
private static void Init() { BodyCatalog.availability.CallWhenAvailable(delegate { StatDef.bodyNames = (from gameObject in BodyCatalog.allBodyPrefabs select gameObject.name).ToArray <string>(); PerBodyStatDef.RegisterStatDefs(StatDef.bodyNames); PerItemStatDef.RegisterStatDefs(); PerEquipmentStatDef.RegisterStatDefs(); PerStageStatDef.RegisterStatDefs(); }); }
// 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); } } } }
// 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); }
public string GetStatValueString([NotNull] PerBodyStatDef perBodyStatDef, [NotNull] string bodyName) { return(this.GetStatValueString(perBodyStatDef.FindStatDef(bodyName))); }
// 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); }