Ejemplo n.º 1
0
 public override void ExposeData()
 {
     base.ExposeData();
     Scribe_Values.Look <string>(ref this.customLabel, "customLabel", null, false);
     Scribe_Deep.Look <SiteCore>(ref this.core, "core", new object[0]);
     Scribe_Collections.Look <SitePart>(ref this.parts, "parts", LookMode.Deep, new object[0]);
     Scribe_Values.Look <bool>(ref this.startedCountdown, "startedCountdown", false, false);
     Scribe_Values.Look <bool>(ref this.anyEnemiesInitially, "anyEnemiesInitially", false, false);
     Scribe_Values.Look <bool>(ref this.sitePartsKnown, "sitePartsKnown", false, false);
     Scribe_Values.Look <bool>(ref this.factionMustRemainHostile, "factionMustRemainHostile", false, false);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.SitePostLoadInit(this);
     }
 }
Ejemplo n.º 2
0
 public override void ExposeData()
 {
     base.ExposeData();
     Scribe_Values.Look(ref customLabel, "customLabel");
     Scribe_Deep.Look(ref core, "core");
     Scribe_Collections.Look(ref parts, "parts", LookMode.Deep);
     Scribe_Values.Look(ref startedCountdown, "startedCountdown", defaultValue: false);
     Scribe_Values.Look(ref anyEnemiesInitially, "anyEnemiesInitially", defaultValue: false);
     Scribe_Values.Look(ref sitePartsKnown, "sitePartsKnown", defaultValue: false);
     Scribe_Values.Look(ref factionMustRemainHostile, "factionMustRemainHostile", defaultValue: false);
     Scribe_Values.Look(ref desiredThreatPoints, "desiredThreatPoints", 0f);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.SitePostLoadInit(this);
     }
 }