예제 #1
0
 // Token: 0x06000391 RID: 913 RVA: 0x0003B0C8 File Offset: 0x000394C8
 public static void DeleteAll()
 {
     Globals.Delete("Affection");
     Globals.Delete("AffectionLevel");
     Globals.DeleteCollection("ComplimentGiven_", DatingGlobals.KeysOfComplimentGiven());
     Globals.DeleteCollection("SuitorCheck_", DatingGlobals.KeysOfSuitorCheck());
     Globals.Delete("SuitorProgress");
     Globals.Delete("RivalSabotaged");
     Globals.DeleteCollection("SuitorTrait_", DatingGlobals.KeysOfSuitorTrait());
     Globals.DeleteCollection("TopicDiscussed_", DatingGlobals.KeysOfTopicDiscussed());
     Globals.DeleteCollection("TraitDemonstrated_", DatingGlobals.KeysOfTraitDemonstrated());
 }
예제 #2
0
    // Token: 0x060019F5 RID: 6645 RVA: 0x000FD56C File Offset: 0x000FB76C
    public static DatingSaveData ReadFromGlobals()
    {
        DatingSaveData datingSaveData = new DatingSaveData();

        datingSaveData.affection      = DatingGlobals.Affection;
        datingSaveData.affectionLevel = DatingGlobals.AffectionLevel;
        foreach (int num in DatingGlobals.KeysOfComplimentGiven())
        {
            if (DatingGlobals.GetComplimentGiven(num))
            {
                datingSaveData.complimentGiven.Add(num);
            }
        }
        foreach (int num2 in DatingGlobals.KeysOfSuitorCheck())
        {
            if (DatingGlobals.GetSuitorCheck(num2))
            {
                datingSaveData.suitorCheck.Add(num2);
            }
        }
        datingSaveData.suitorProgress = DatingGlobals.SuitorProgress;
        foreach (int num3 in DatingGlobals.KeysOfSuitorTrait())
        {
            datingSaveData.suitorTrait.Add(num3, DatingGlobals.GetSuitorTrait(num3));
        }
        foreach (int num4 in DatingGlobals.KeysOfTopicDiscussed())
        {
            if (DatingGlobals.GetTopicDiscussed(num4))
            {
                datingSaveData.topicDiscussed.Add(num4);
            }
        }
        foreach (int num5 in DatingGlobals.KeysOfTraitDemonstrated())
        {
            datingSaveData.traitDemonstrated.Add(num5, DatingGlobals.GetTraitDemonstrated(num5));
        }
        return(datingSaveData);
    }