コード例 #1
0
    // 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);
    }