예제 #1
0
    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);
        }
    }
예제 #2
0
 public void SaveClasses(ClassesSerializable classesSerializable)
 {
     GenericSave(fileName, classesSerializable);
 }
예제 #3
0
 public void PrepareClassesBonusesForSaving(ClassesSerializable classesInfo)
 {
     classesSerializableToSave = classesInfo;
 }