Ejemplo n.º 1
0
        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}");
        }
Ejemplo n.º 2
0
        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();
        }