Esempio n. 1
0
 // Token: 0x060015A4 RID: 5540 RVA: 0x000B7E4C File Offset: 0x000B604C
 public static void DeleteAll()
 {
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Money");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Alerts");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Enlightenment");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_EnlightenmentBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Friends");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Headset");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_FakeID");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_RaibaruLoner");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Kills");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Numbness");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_NumbnessBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_PantiesEquipped");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_PantyShots");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_Photo_", PlayerGlobals.KeysOfPhoto());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoOnCorkboard_", PlayerGlobals.KeysOfPhotoOnCorkboard());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoPosition_", PlayerGlobals.KeysOfPhotoPosition());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_PhotoRotation_", PlayerGlobals.KeysOfPhotoRotation());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Reputation");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_Seduction");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SeductionBonus");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_SenpaiPhoto_", PlayerGlobals.KeysOfSenpaiPhoto());
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SenpaiShots");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SocialBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_SpeedBonus");
     Globals.Delete("Profile_" + GameGlobals.Profile + "_StealthBonus");
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_StudentFriend_", PlayerGlobals.KeysOfStudentFriend());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_StudentPantyShot_", PlayerGlobals.KeysOfStudentPantyShot());
     Globals.DeleteCollection("Profile_" + GameGlobals.Profile + "_ShrineCollectible", PlayerGlobals.KeysOfShrineCollectible());
 }
Esempio n. 2
0
 // Token: 0x0600040D RID: 1037 RVA: 0x0003BA38 File Offset: 0x00039E38
 public static void DeleteAll()
 {
     Globals.Delete("Alerts");
     Globals.Delete("Enlightenment");
     Globals.Delete("EnlightenmentBonus");
     Globals.Delete("Headset");
     Globals.Delete("Kills");
     Globals.Delete("Numbness");
     Globals.Delete("NumbnessBonus");
     Globals.Delete("PantiesEquipped");
     Globals.Delete("PantyShots");
     Globals.DeleteCollection("Photo_", PlayerGlobals.KeysOfPhoto());
     Globals.DeleteCollection("PhotoOnCorkboard_", PlayerGlobals.KeysOfPhotoOnCorkboard());
     Globals.DeleteCollection("PhotoPosition_", PlayerGlobals.KeysOfPhotoPosition());
     Globals.DeleteCollection("PhotoRotation_", PlayerGlobals.KeysOfPhotoRotation());
     Globals.Delete("Reputation");
     Globals.Delete("Seduction");
     Globals.Delete("SeductionBonus");
     Globals.DeleteCollection("SenpaiPhoto_", PlayerGlobals.KeysOfSenpaiPhoto());
     Globals.Delete("SenpaiShots");
     Globals.Delete("SocialBonus");
     Globals.Delete("SpeedBonus");
     Globals.Delete("StealthBonus");
     Globals.DeleteCollection("StudentFriend_", PlayerGlobals.KeysOfStudentFriend());
     Globals.DeleteCollection("StudentPantyShot_", PlayerGlobals.KeysOfStudentPantyShot());
 }
    // Token: 0x06001A07 RID: 6663 RVA: 0x000FDC0C File Offset: 0x000FBE0C
    public static PlayerSaveData ReadFromGlobals()
    {
        PlayerSaveData playerSaveData = new PlayerSaveData();

        playerSaveData.alerts             = PlayerGlobals.Alerts;
        playerSaveData.enlightenment      = PlayerGlobals.Enlightenment;
        playerSaveData.enlightenmentBonus = PlayerGlobals.EnlightenmentBonus;
        playerSaveData.headset            = PlayerGlobals.Headset;
        playerSaveData.kills           = PlayerGlobals.Kills;
        playerSaveData.numbness        = PlayerGlobals.Numbness;
        playerSaveData.numbnessBonus   = PlayerGlobals.NumbnessBonus;
        playerSaveData.pantiesEquipped = PlayerGlobals.PantiesEquipped;
        playerSaveData.pantyShots      = PlayerGlobals.PantyShots;
        foreach (int num in PlayerGlobals.KeysOfPhoto())
        {
            if (PlayerGlobals.GetPhoto(num))
            {
                playerSaveData.photo.Add(num);
            }
        }
        foreach (int num2 in PlayerGlobals.KeysOfPhotoOnCorkboard())
        {
            if (PlayerGlobals.GetPhotoOnCorkboard(num2))
            {
                playerSaveData.photoOnCorkboard.Add(num2);
            }
        }
        foreach (int num3 in PlayerGlobals.KeysOfPhotoPosition())
        {
            playerSaveData.photoPosition.Add(num3, PlayerGlobals.GetPhotoPosition(num3));
        }
        foreach (int num4 in PlayerGlobals.KeysOfPhotoRotation())
        {
            playerSaveData.photoRotation.Add(num4, PlayerGlobals.GetPhotoRotation(num4));
        }
        playerSaveData.reputation     = PlayerGlobals.Reputation;
        playerSaveData.seduction      = PlayerGlobals.Seduction;
        playerSaveData.seductionBonus = PlayerGlobals.SeductionBonus;
        foreach (int num5 in PlayerGlobals.KeysOfSenpaiPhoto())
        {
            if (PlayerGlobals.GetSenpaiPhoto(num5))
            {
                playerSaveData.senpaiPhoto.Add(num5);
            }
        }
        playerSaveData.senpaiShots  = PlayerGlobals.SenpaiShots;
        playerSaveData.socialBonus  = PlayerGlobals.SocialBonus;
        playerSaveData.speedBonus   = PlayerGlobals.SpeedBonus;
        playerSaveData.stealthBonus = PlayerGlobals.StealthBonus;
        foreach (int num6 in PlayerGlobals.KeysOfStudentFriend())
        {
            if (PlayerGlobals.GetStudentFriend(num6))
            {
                playerSaveData.studentFriend.Add(num6);
            }
        }
        foreach (string text in PlayerGlobals.KeysOfStudentPantyShot())
        {
            if (PlayerGlobals.GetStudentPantyShot(text))
            {
                playerSaveData.studentPantyShot.Add(text);
            }
        }
        return(playerSaveData);
    }