Beispiel #1
0
 public void ExposeData()
 {
     Scribe_Deep.Look(ref info, "info");
     Scribe_Deep.Look(ref grid, "grid");
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         if (grid == null || !grid.HasWorldData)
         {
             WorldGenerator.GenerateWithoutWorldData(info.seedString);
         }
         else
         {
             WorldGenerator.GenerateFromScribe(info.seedString);
         }
     }
     else
     {
         ExposeComponents();
     }
 }
Beispiel #2
0
 public void ExposeData()
 {
     Scribe_Deep.Look <WorldInfo>(ref this.info, "info", new object[0]);
     Scribe_Deep.Look <WorldGrid>(ref this.grid, "grid", new object[0]);
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         if (this.grid == null || !this.grid.HasWorldData)
         {
             WorldGenerator.GenerateWithoutWorldData(this.info.seedString);
         }
         else
         {
             WorldGenerator.GenerateFromScribe(this.info.seedString);
         }
     }
     else
     {
         this.ExposeComponents();
     }
 }