Example #1
0
        /// <summary>
        /// Load the gpd's Campaign Completion
        /// </summary>
        public void LoadCampaignCompletion()
        {
            _gpdCampaignLevels = new List<CampaignLevel>();

            // Load all levels
            for (int spLevel = 9; spLevel >= 0; spLevel--)
            {
                int coopLevel = 9 - spLevel;
                CampaignLevel campaignLevel = new CampaignLevel();

                _gpdStream.SeekTo(0x350D - spLevel);
                campaignLevel.CompletionSP = (CompletionState)_gpdStream.ReadByte();

                _gpdStream.SeekTo(0x352E + coopLevel);
                campaignLevel.CompletionSP = (CompletionState)_gpdStream.ReadByte();

                campaignLevel.LevelName = (CampaignLevelNames)coopLevel;

                _gpdCampaignLevels.Add(campaignLevel);
            }
        }
Example #2
0
        /// <summary>
        /// Load the gpd's Campaign Completion
        /// </summary>
        public void LoadCampaignCompletion()
        {
            _gpdCampaignLevels = new List<CampaignLevel>();

            for (int level = 0; level < 10; level++)
            {
                CampaignLevel campaignLevel = new CampaignLevel();
                campaignLevel.LevelName = (CampaignLevelNames)level;

                _gpdStream.SeekTo(0x34F8 + level);
                campaignLevel.CompletionSP = (CompletionState)_gpdStream.ReadByte();
                _gpdStream.SeekTo(0x3518 + level);
                campaignLevel.CompletionCoop = (CompletionState)_gpdStream.ReadByte();
                _gpdStream.SeekTo(0x354C + level);
                campaignLevel.ProgressSP = (CampaignProcessState)_gpdStream.ReadByte();

                _gpdCampaignLevels.Add(campaignLevel);
            }
        }