Example #1
0
 public override void PostMake()
 {
     Log.Message("PlantExtended.PostMake 1");
     base.PostMake();
     Log.Message("PlantExtended.PostMake 2");
     ExtendedComponent.InitializeExtComps(this);
     Log.Message("PlantExtended.PostMake 3");
 }
Example #2
0
 public override void ExposeData()
 {
     Log.Message("PlantExtended.ExposeData 1");
     base.ExposeData();
     Log.Message("PlantExtended.ExposeData 2");
     if (Scribe.mode == LoadSaveMode.LoadingVars)
     {
         Log.Message("PlantExtended.ExposeData 2.1");
         ExtendedComponent.InitializeExtComps(this);
         Log.Message("PlantExtended.ExposeData 2.2");
     }
     for (int i = 0; i < this.ExtComps.Count; i++)
     {
         this.ExtComps[i].PostExposeData();
     }
     Log.Message("PlantExtended.ExposeData 3");
 }