Пример #1
0
 public override void PostExposeData()
 {
     base.PostExposeData();
     Scribe_Defs.Look(ref requestThingDef, "requestThingDef");
     Scribe_Values.Look(ref requestCount, "requestCount", 0);
     Scribe_Deep.Look(ref rewards, "rewards", this);
     Scribe_Values.Look(ref expiration, "expiration", 0);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.TradeRequestCompPostLoadInit(this);
     }
 }
 public override void PostExposeData()
 {
     base.PostExposeData();
     Scribe_Defs.Look <ThingDef>(ref this.requestThingDef, "requestThingDef");
     Scribe_Values.Look <int>(ref this.requestCount, "requestCount", 0, false);
     Scribe_Deep.Look <ThingOwner>(ref this.rewards, "rewards", new object[]
     {
         this
     });
     Scribe_Values.Look <int>(ref this.expiration, "expiration", 0, false);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.TradeRequestCompPostLoadInit(this);
     }
 }