예제 #1
0
 public void ExposeData()
 {
     Scribe_Values.Look <string>(ref this.name, "name", null, false);
     Scribe_Values.Look <float>(ref this.planetCoverage, "planetCoverage", 0f, false);
     Scribe_Values.Look <string>(ref this.seedString, "seedString", null, false);
     Scribe_Values.Look <int>(ref this.persistentRandomValue, "persistentRandomValue", 0, false);
     Scribe_Values.Look <OverallRainfall>(ref this.overallRainfall, "overallRainfall", OverallRainfall.AlmostNone, false);
     Scribe_Values.Look <OverallTemperature>(ref this.overallTemperature, "overallTemperature", OverallTemperature.VeryCold, false);
     Scribe_Values.Look <IntVec3>(ref this.initialMapSize, "initialMapSize", default(IntVec3), false);
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.WorldInfoPostLoadInit(this);
     }
 }
예제 #2
0
파일: WorldInfo.cs 프로젝트: potsh/RimWorld
 public void ExposeData()
 {
     Scribe_Values.Look(ref name, "name");
     Scribe_Values.Look(ref planetCoverage, "planetCoverage", 0f);
     Scribe_Values.Look(ref seedString, "seedString");
     Scribe_Values.Look(ref persistentRandomValue, "persistentRandomValue", 0);
     Scribe_Values.Look(ref overallRainfall, "overallRainfall", OverallRainfall.AlmostNone);
     Scribe_Values.Look(ref overallTemperature, "overallTemperature", OverallTemperature.VeryCold);
     Scribe_Values.Look(ref initialMapSize, "initialMapSize");
     if (Scribe.mode == LoadSaveMode.PostLoadInit)
     {
         BackCompatibility.WorldInfoPostLoadInit(this);
     }
 }