Exemple #1
0
 public void ExposeData()
 {
     Scribe_Values.Look <int>(ref this.uniqueID, "uniqueID", 0, false);
     Scribe_Defs.Look <FeatureDef>(ref this.def, "def");
     Scribe_Values.Look <string>(ref this.name, "name", null, false);
     Scribe_Values.Look <Vector3>(ref this.drawCenter, "drawCenter", default(Vector3), false);
     Scribe_Values.Look <float>(ref this.drawAngle, "drawAngle", 0f, false);
     Scribe_Values.Look <float>(ref this.maxDrawSizeInTiles, "maxDrawSizeInTiles", 0f, false);
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         BackCompatibility.WorldFeatureLoadingVars(this);
     }
 }
Exemple #2
0
 public void ExposeData()
 {
     Scribe_Values.Look(ref uniqueID, "uniqueID", 0);
     Scribe_Defs.Look(ref def, "def");
     Scribe_Values.Look(ref name, "name");
     Scribe_Values.Look(ref drawCenter, "drawCenter");
     Scribe_Values.Look(ref drawAngle, "drawAngle", 0f);
     Scribe_Values.Look(ref maxDrawSizeInTiles, "maxDrawSizeInTiles", 0f);
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         BackCompatibility.WorldFeatureLoadingVars(this);
     }
 }