Example #1
0
 public virtual void ExposeData()
 {
     Scribe_Values.Look <int>(ref this.ID, "ID", -1, false);
     Scribe_Values.Look <string>(ref this.label, "label", null, false);
     Scribe_Values.Look <Color>(ref this.color, "color", default(Color), false);
     Scribe_Values.Look <bool>(ref this.hidden, "hidden", false, false);
     Scribe_Collections.Look <IntVec3>(ref this.cells, "cells", LookMode.Undefined, new object[0]);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.ZonePostLoadInit(this);
         this.CheckAddHaulDestination();
     }
 }
Example #2
0
 public virtual void ExposeData()
 {
     Scribe_Values.Look(ref ID, "ID", -1);
     Scribe_Values.Look(ref label, "label");
     Scribe_Values.Look(ref color, "color");
     Scribe_Values.Look(ref hidden, "hidden", defaultValue: false);
     Scribe_Collections.Look(ref cells, "cells", LookMode.Undefined);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.ZonePostLoadInit(this);
         CheckAddHaulDestination();
     }
 }