public void LoadEverything() { if (DoesAnySaveExist()) { loadedMapsInfo = mapsPersistence.LoadAllMaps(namesOfMapsToLoad); loadedClassesSerializable = classesPersistence.LoadClasses(); loadedDeckSerializable = deckPersistence.Load(); loadedCardsCollection = cardsCollectionPersistence.Load(); loadedCardsLevel = cardsLevelPersistence.Load(); classesSerializableToSave = loadedClassesSerializable; deckSerializableToSave = loadedDeckSerializable; cardsLevelToSave = loadedCardsLevel; } else { L.ogError("LoadEverything was called, but any save exist on storage", this); } }
public void SaveClasses(ClassesSerializable classesSerializable) { GenericSave(fileName, classesSerializable); }
public void PrepareClassesBonusesForSaving(ClassesSerializable classesInfo) { classesSerializableToSave = classesInfo; }