public override void PostSpawnSetup(bool respawningAfterLoad) { base.PostSpawnSetup(respawningAfterLoad); if (!respawningAfterLoad) { Log.Message($"Initialize cached DS unit"); this.CellStorages = new Cell_Storage_Collection(this.parent as Building_Storage, this); } Utils.Mess(Utils.DBF.Cache, $"TickerType: {this.parent.def.tickerType}"); }
public override void PostExposeData() { if (Scribe.mode != LoadSaveMode.LoadingVars) { base.PostExposeData(); } if (this.CellStorages == null) { this.CellStorages = new Cell_Storage_Collection(this.parent as Building_Storage, this); } this.CellStorages.ExposeData(); }