public static void WriteToGlobals(SchemeSaveData data)
 {
     SchemeGlobals.CurrentScheme = data.currentScheme;
     SchemeGlobals.DarkSecret    = data.darkSecret;
     foreach (KeyValuePair <int, int> keyValuePair in data.schemePreviousStage)
     {
         SchemeGlobals.SetSchemePreviousStage(keyValuePair.Key, keyValuePair.Value);
     }
     foreach (KeyValuePair <int, int> keyValuePair2 in data.schemeStage)
     {
         SchemeGlobals.SetSchemeStage(keyValuePair2.Key, keyValuePair2.Value);
     }
     foreach (int schemeID in data.schemeStatus)
     {
         SchemeGlobals.SetSchemeStatus(schemeID, true);
     }
     foreach (int schemeID2 in data.schemeUnlocked)
     {
         SchemeGlobals.SetSchemeUnlocked(schemeID2, true);
     }
     foreach (int serviceID in data.servicePurchased)
     {
         SchemeGlobals.SetServicePurchased(serviceID, true);
     }
 }
    public static SchemeSaveData ReadFromGlobals()
    {
        SchemeSaveData schemeSaveData = new SchemeSaveData();

        schemeSaveData.currentScheme = SchemeGlobals.CurrentScheme;
        schemeSaveData.darkSecret    = SchemeGlobals.DarkSecret;
        foreach (int num in SchemeGlobals.KeysOfSchemePreviousStage())
        {
            schemeSaveData.schemePreviousStage.Add(num, SchemeGlobals.GetSchemePreviousStage(num));
        }
        foreach (int num2 in SchemeGlobals.KeysOfSchemeStage())
        {
            schemeSaveData.schemeStage.Add(num2, SchemeGlobals.GetSchemeStage(num2));
        }
        foreach (int num3 in SchemeGlobals.KeysOfSchemeStatus())
        {
            if (SchemeGlobals.GetSchemeStatus(num3))
            {
                schemeSaveData.schemeStatus.Add(num3);
            }
        }
        foreach (int num4 in SchemeGlobals.KeysOfSchemeUnlocked())
        {
            if (SchemeGlobals.GetSchemeUnlocked(num4))
            {
                schemeSaveData.schemeUnlocked.Add(num4);
            }
        }
        foreach (int num5 in SchemeGlobals.KeysOfServicePurchased())
        {
            if (SchemeGlobals.GetServicePurchased(num5))
            {
                schemeSaveData.servicePurchased.Add(num5);
            }
        }
        return(schemeSaveData);
    }
Exemple #3
0
 // Token: 0x06000762 RID: 1890 RVA: 0x0006F7C8 File Offset: 0x0006DBC8
 public void WriteToGlobals()
 {
     ApplicationSaveData.WriteToGlobals(this.data.applicationData);
     ClassSaveData.WriteToGlobals(this.data.classData);
     ClubSaveData.WriteToGlobals(this.data.clubData);
     CollectibleSaveData.WriteToGlobals(this.data.collectibleData);
     ConversationSaveData.WriteToGlobals(this.data.conversationData);
     DateSaveData.WriteToGlobals(this.data.dateData);
     DatingSaveData.WriteToGlobals(this.data.datingData);
     EventSaveData.WriteToGlobals(this.data.eventData);
     GameSaveData.WriteToGlobals(this.data.gameData);
     HomeSaveData.WriteToGlobals(this.data.homeData);
     MissionModeSaveData.WriteToGlobals(this.data.missionModeData);
     OptionSaveData.WriteToGlobals(this.data.optionData);
     PlayerSaveData.WriteToGlobals(this.data.playerData);
     PoseModeSaveData.WriteToGlobals(this.data.poseModeData);
     SaveFileSaveData.WriteToGlobals(this.data.saveFileData);
     SchemeSaveData.WriteToGlobals(this.data.schemeData);
     SchoolSaveData.WriteToGlobals(this.data.schoolData);
     SenpaiSaveData.WriteToGlobals(this.data.senpaiData);
     StudentSaveData.WriteToGlobals(this.data.studentData);
     TaskSaveData.WriteToGlobals(this.data.taskData);
     YanvaniaSaveData.WriteToGlobals(this.data.yanvaniaData);
 }
Exemple #4
0
 // Token: 0x06000761 RID: 1889 RVA: 0x0006F668 File Offset: 0x0006DA68
 public void ReadFromGlobals()
 {
     this.data.applicationData  = ApplicationSaveData.ReadFromGlobals();
     this.data.classData        = ClassSaveData.ReadFromGlobals();
     this.data.clubData         = ClubSaveData.ReadFromGlobals();
     this.data.collectibleData  = CollectibleSaveData.ReadFromGlobals();
     this.data.conversationData = ConversationSaveData.ReadFromGlobals();
     this.data.dateData         = DateSaveData.ReadFromGlobals();
     this.data.datingData       = DatingSaveData.ReadFromGlobals();
     this.data.eventData        = EventSaveData.ReadFromGlobals();
     this.data.gameData         = GameSaveData.ReadFromGlobals();
     this.data.homeData         = HomeSaveData.ReadFromGlobals();
     this.data.missionModeData  = MissionModeSaveData.ReadFromGlobals();
     this.data.optionData       = OptionSaveData.ReadFromGlobals();
     this.data.playerData       = PlayerSaveData.ReadFromGlobals();
     this.data.poseModeData     = PoseModeSaveData.ReadFromGlobals();
     this.data.saveFileData     = SaveFileSaveData.ReadFromGlobals();
     this.data.schemeData       = SchemeSaveData.ReadFromGlobals();
     this.data.schoolData       = SchoolSaveData.ReadFromGlobals();
     this.data.senpaiData       = SenpaiSaveData.ReadFromGlobals();
     this.data.studentData      = StudentSaveData.ReadFromGlobals();
     this.data.taskData         = TaskSaveData.ReadFromGlobals();
     this.data.yanvaniaData     = YanvaniaSaveData.ReadFromGlobals();
 }