private static PerStageStatDef Register(string prefix, StatRecordType recordType, StatDataType dataType, StatDef.DisplayValueFormatterDelegate displayValueFormatter = null)
        {
            PerStageStatDef perStageStatDef = new PerStageStatDef(prefix, recordType, dataType, displayValueFormatter);

            PerStageStatDef.instancesList.Add(perStageStatDef);
            return(perStageStatDef);
        }
 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();
     });
 }