Beispiel #1
0
 Saving.Nugget Saving.ISaveableObject.SaveToNugget(Saving.Saver SaveSystem)
 {
     return(new ComponentSaveNugget
     {
         SaveableComponents = SaveableComponents.Select(o => SaveSystem.SaveObject(o)).ToList(),
         RootComponent = RootComponent
     });
 }
Beispiel #2
0
        Saving.Nugget Saving.ISaveableObject.SaveToNugget(Saving.Saver SaveSystem)
        {
            var r = new SaveNugget();

            r.Factions = new Dictionary <string, Saving.Nugget>();
            foreach (var faction in Factions)
            {
                r.Factions.Add(faction.Key, SaveSystem.SaveObject(faction.Value));
            }

            return(r);
        }