Example #1
0
 public virtual void ExposeData()
 {
     Scribe_Defs.Look <GameConditionDef>(ref this.def, "def");
     Scribe_Values.Look <int>(ref this.startTick, "startTick", 0, false);
     Scribe_Values.Look <int>(ref this.duration, "duration", 0, false);
     Scribe_Values.Look <bool>(ref this.permanent, "permanent", false, false);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.GameConditionPostLoadInit(this);
     }
 }
Example #2
0
 public virtual void ExposeData()
 {
     Scribe_Defs.Look(ref def, "def");
     Scribe_Values.Look(ref startTick, "startTick", 0);
     Scribe_Values.Look(ref duration, "duration", 0);
     Scribe_Values.Look(ref permanent, "permanent", defaultValue: false);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.GameConditionPostLoadInit(this);
     }
 }