Exemple #1
0
 private void ExposeComponents()
 {
     Scribe_Deep.Look(ref weatherManager, "weatherManager", this);
     Scribe_Deep.Look(ref reservationManager, "reservationManager", this);
     Scribe_Deep.Look(ref physicalInteractionReservationManager, "physicalInteractionReservationManager");
     Scribe_Deep.Look(ref designationManager, "designationManager", this);
     Scribe_Deep.Look(ref pawnDestinationReservationManager, "pawnDestinationReservationManager");
     Scribe_Deep.Look(ref lordManager, "lordManager", this);
     Scribe_Deep.Look(ref passingShipManager, "visitorManager", this);
     Scribe_Deep.Look(ref gameConditionManager, "gameConditionManager", this);
     Scribe_Deep.Look(ref fogGrid, "fogGrid", this);
     Scribe_Deep.Look(ref roofGrid, "roofGrid", this);
     Scribe_Deep.Look(ref terrainGrid, "terrainGrid", this);
     Scribe_Deep.Look(ref zoneManager, "zoneManager", this);
     Scribe_Deep.Look(ref temperatureCache, "temperatureCache", this);
     Scribe_Deep.Look(ref snowGrid, "snowGrid", this);
     Scribe_Deep.Look(ref areaManager, "areaManager", this);
     Scribe_Deep.Look(ref lordsStarter, "lordsStarter", this);
     Scribe_Deep.Look(ref attackTargetReservationManager, "attackTargetReservationManager", this);
     Scribe_Deep.Look(ref deepResourceGrid, "deepResourceGrid", this);
     Scribe_Deep.Look(ref weatherDecider, "weatherDecider", this);
     Scribe_Deep.Look(ref damageWatcher, "damageWatcher");
     Scribe_Deep.Look(ref rememberedCameraPos, "rememberedCameraPos", this);
     Scribe_Deep.Look(ref mineStrikeManager, "mineStrikeManager");
     Scribe_Deep.Look(ref retainedCaravanData, "retainedCaravanData", this);
     Scribe_Deep.Look(ref storyState, "storyState", this);
     Scribe_Deep.Look(ref wildPlantSpawner, "wildPlantSpawner", this);
     Scribe_Collections.Look(ref components, "components", LookMode.Deep, this);
     FillComponents();
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.MapPostLoadInit(this);
     }
 }
Exemple #2
0
 private void ExposeComponents()
 {
     Scribe_Deep.Look <WeatherManager>(ref this.weatherManager, "weatherManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <ReservationManager>(ref this.reservationManager, "reservationManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <PhysicalInteractionReservationManager>(ref this.physicalInteractionReservationManager, "physicalInteractionReservationManager", new object[0]);
     Scribe_Deep.Look <DesignationManager>(ref this.designationManager, "designationManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <PawnDestinationReservationManager>(ref this.pawnDestinationReservationManager, "pawnDestinationReservationManager", new object[0]);
     Scribe_Deep.Look <LordManager>(ref this.lordManager, "lordManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <PassingShipManager>(ref this.passingShipManager, "visitorManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <GameConditionManager>(ref this.gameConditionManager, "gameConditionManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <FogGrid>(ref this.fogGrid, "fogGrid", new object[]
     {
         this
     });
     Scribe_Deep.Look <RoofGrid>(ref this.roofGrid, "roofGrid", new object[]
     {
         this
     });
     Scribe_Deep.Look <TerrainGrid>(ref this.terrainGrid, "terrainGrid", new object[]
     {
         this
     });
     Scribe_Deep.Look <ZoneManager>(ref this.zoneManager, "zoneManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <TemperatureCache>(ref this.temperatureCache, "temperatureCache", new object[]
     {
         this
     });
     Scribe_Deep.Look <SnowGrid>(ref this.snowGrid, "snowGrid", new object[]
     {
         this
     });
     Scribe_Deep.Look <AreaManager>(ref this.areaManager, "areaManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <VoluntarilyJoinableLordsStarter>(ref this.lordsStarter, "lordsStarter", new object[]
     {
         this
     });
     Scribe_Deep.Look <AttackTargetReservationManager>(ref this.attackTargetReservationManager, "attackTargetReservationManager", new object[]
     {
         this
     });
     Scribe_Deep.Look <DeepResourceGrid>(ref this.deepResourceGrid, "deepResourceGrid", new object[]
     {
         this
     });
     Scribe_Deep.Look <WeatherDecider>(ref this.weatherDecider, "weatherDecider", new object[]
     {
         this
     });
     Scribe_Deep.Look <DamageWatcher>(ref this.damageWatcher, "damageWatcher", new object[0]);
     Scribe_Deep.Look <RememberedCameraPos>(ref this.rememberedCameraPos, "rememberedCameraPos", new object[]
     {
         this
     });
     Scribe_Deep.Look <MineStrikeManager>(ref this.mineStrikeManager, "mineStrikeManager", new object[0]);
     Scribe_Deep.Look <RetainedCaravanData>(ref this.retainedCaravanData, "retainedCaravanData", new object[]
     {
         this
     });
     Scribe_Deep.Look <StoryState>(ref this.storyState, "storyState", new object[]
     {
         this
     });
     Scribe_Deep.Look <WildPlantSpawner>(ref this.wildPlantSpawner, "wildPlantSpawner", new object[]
     {
         this
     });
     Scribe_Collections.Look <MapComponent>(ref this.components, "components", LookMode.Deep, new object[]
     {
         this
     });
     this.FillComponents();
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.MapPostLoadInit(this);
     }
 }