public override void ExposeData()
        {
            MapExposeUtility.ExposeUshort(this.map, (IntVec3 c) => MapComponent_HiveGrid.HiveFloatToShort(this.GetDepth(c)), delegate(IntVec3 c, ushort val)
            {
                this.depthGrid[this.map.cellIndices.CellToIndex(c)] = MapComponent_HiveGrid.HiveShortToFloat(val);
            }, "depthGrid");


            if (Scribe.mode == LoadSaveMode.Saving)
            {
                this.HiveGuardlist.RemoveAll((Pawn x) => x.Destroyed);
                this.HiveWorkerlist.RemoveAll((Pawn x) => x.Destroyed);
                this.potentialHosts.RemoveAll((Pawn x) => x.Destroyed);
                this.nonpotentialHosts.RemoveAll((Pawn x) => x.Destroyed);
                this.Queenlist.RemoveAll((Pawn x) => x.Destroyed);
                this.Dronelist.RemoveAll((Pawn x) => x.Destroyed);
                this.Warriorlist.RemoveAll((Pawn x) => x.Destroyed);
                this.Runnerlist.RemoveAll((Pawn x) => x.Destroyed);
                this.Runnerlist.RemoveAll((Pawn x) => x.Destroyed);
                this.Thrumbomorphlist.RemoveAll((Pawn x) => x.Destroyed);
                this.Hivelist.RemoveAll((Thing x) => x.Destroyed);
                this.HiveChildlist.RemoveAll((Thing x) => x.Destroyed);
            }
            Scribe_Collections.Look <Pawn>(ref this.HiveGuardlist, "HiveGuardlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.HiveWorkerlist, "HiveWorkerlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.potentialHosts, "potentialHosts", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.nonpotentialHosts, "nonpotentialHosts", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Queenlist, "Queenlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Dronelist, "Dronelist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Warriorlist, "Warriorlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Runnerlist, "Runnerlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Predalienlist, "Predalienlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Pawn>(ref this.Thrumbomorphlist, "Thrumbomorphlist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <PotentialXenomorphHiveLocation>(ref this.PotentialHiveLoclist, "PotentialHiveLoclist", LookMode.Deep);
            Scribe_Collections.Look <Thing>(ref this.Hivelist, "Hivelist", LookMode.Reference, new object[0]);
            Scribe_Collections.Look <Thing>(ref this.HiveChildlist, "HiveChildlist", LookMode.Reference, new object[0]);
            if (Scribe.mode == LoadSaveMode.PostLoadInit)
            {
                this.HiveGuardlist.RemoveAll((Pawn x) => x == null);
                this.HiveWorkerlist.RemoveAll((Pawn x) => x == null);
                this.potentialHosts.RemoveAll((Pawn x) => x == null);
                this.nonpotentialHosts.RemoveAll((Pawn x) => x == null);
                this.Queenlist.RemoveAll((Pawn x) => x == null);
                this.Dronelist.RemoveAll((Pawn x) => x == null);
                this.Warriorlist.RemoveAll((Pawn x) => x == null);
                this.Runnerlist.RemoveAll((Pawn x) => x == null);
                this.Predalienlist.RemoveAll((Pawn x) => x == null);
                this.Thrumbomorphlist.RemoveAll((Pawn x) => x == null);
                this.Hivelist.RemoveAll((Thing x) => x == null);
                this.HiveChildlist.RemoveAll((Thing x) => x == null);
            }
            Scribe_Deep.Look <ThingOwner>(ref this.innerContainer, "innerContainer", new object[]
            {
                this
            });
            base.ExposeData();
        }
 public override void ExposeData()
 {
     MapExposeUtility.ExposeUshort(this.map, (IntVec3 c) => MapComponent_HiveGrid.HiveFloatToShort(this.GetDepth(c)), delegate(IntVec3 c, ushort val)
     {
         this.depthGrid[this.map.cellIndices.CellToIndex(c)] = MapComponent_HiveGrid.HiveShortToFloat(val);
     }, "depthGrid");
     Scribe_Collections.Look <Pawn>(ref this.HiveGuardlist, "HiveGuardlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.HiveWorkerlist, "HiveWorkerlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.potentialHosts, "potentialHosts", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.nonpotentialHosts, "nonpotentialHosts", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Queenlist, "Queenlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Dronelist, "Dronelist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Warriorlist, "Warriorlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Runnerlist, "Runnerlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Predalienlist, "Predalienlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Pawn>(ref this.Thrumbomorphlist, "Thrumbomorphlist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Thing>(ref this.Hivelist, "Hivelist", LookMode.Reference, new object[0]);
     Scribe_Collections.Look <Thing>(ref this.HiveChildlist, "HiveChildlist", LookMode.Reference, new object[0]);
     base.ExposeData();
 }