ExposeData() public method

public ExposeData ( ) : void
return void
        public override void ExposeData()
        {
            GeneticInformation.ExposeData();

            if (Scribe.EnterNode("settings"))
            {
                Settings.ExposeData();
                Scribe.ExitNode();
            }
        }
Example #2
0
        public override void ExposeData()
        {
            if (Verse.Scribe.mode == LoadSaveMode.Saving)
            {
                BackwardsCompatData = new Dictionary <Thing, StatGroup>();
                _Things             = new List <Thing>();
                _StatGroups         = new List <StatGroup>();
                System.GC.Collect();
                foreach (GeneticInformation gi in GeneticInformation.Instances)
                {
                    BackwardsCompatData[gi.parent] = new StatGroup(gi);
                }
            }

            Scribe_Collections.Look(ref BackwardsCompatData, "data", LookMode.Reference, LookMode.Deep, ref _Things, ref _StatGroups);

            if (Scribe.EnterNode("settings"))
            {
                Settings.ExposeData();
                Scribe.ExitNode();
            }
        }