Exemplo n.º 1
0
            void Saving.ISaveableObject.LoadFromNugget(Saving.Loader SaveSystem, Saving.Nugget From)
            {
                var n = From as ComponentSaveNugget;

                SaveableComponents = n.SaveableComponents.Select(o => SaveSystem.LoadObject(o) as GameComponent).ToList();
                RootComponent      = n.RootComponent;
            }
Exemplo n.º 2
0
        void Saving.ISaveableObject.LoadFromNugget(Saving.Loader SaveSystem, Saving.Nugget From)
        {
            var n = From as SaveNugget;

            Factions = new Dictionary <string, Faction>();
            foreach (var savedFaction in n.Factions)
            {
                Factions.Add(savedFaction.Key, SaveSystem.LoadObject(savedFaction.Value) as Faction);
            }
        }