public override void CompExposeData()
 {
     Scribe_Values.Look <bool>(ref this.isPermanentInt, "isPermanent", false, false);
     Scribe_Values.Look <float>(ref this.permanentDamageThreshold, "permanentDamageThreshold", 9999f, false);
     Scribe_Values.Look <float>(ref this.painFactor, "painFactor", 1f, false);
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         BackCompatibility.HediffComp_GetsPermanentLoadingVars(this);
     }
 }
Пример #2
0
 public override void CompExposeData()
 {
     Scribe_Values.Look(ref isPermanentInt, "isPermanent", defaultValue: false);
     Scribe_Values.Look(ref permanentDamageThreshold, "permanentDamageThreshold", 9999f);
     Scribe_Values.Look(ref painFactor, "painFactor", 1f);
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         BackCompatibility.HediffComp_GetsPermanentLoadingVars(this);
     }
 }