JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMissionSheet Class Reference

A challenge mission sheet's identity, dates, reward, and mission tables. More...

#include <ChallengeMissionSheet.h>

Inheritance diagram for ChallengeMissionSheet:
Collaboration diagram for ChallengeMissionSheet:

Instance Methods

(instancetype) - init
 Returns an empty sheet.
(void) - initWithDictionary:
 Fills the sheet in from a server dictionary.
(BOOL) - initWithData:sheetID:
 Deciphers and unarchives a saved sheet, filling the object in when its id matches.
(void) - updateMissionTerms:
 Rebuilds the mission-terms table (and the reward) from a server dictionary.
(void) - updateMissionAchieves:
 Rebuilds the achievement and play-term tables from an achievement dictionary.
(nullable NSData *) - generateSaveData
 Ciphers an archived copy of the sheet for local persistence.
(nullable NSMutableDictionary *) - generateMissionSheetDictionary
 Writes the sheet back out in the server's dictionary format.
(nullable NSDictionary *) - generateMissionDictionary
 Builds the "mission_list" dictionary mapping each mission's dictionary to its boxed id.
(BOOL) - checkMissionSheet
 Marks the sheet confirmed, reporting whether this call was the one that changed it.

Properties

BOOL bConfirmed
 Whether the player has confirmed (seen) the sheet.
NSString * sheetName
 The sheet's display name.
int sheetID
 The sheet's identifier.
int missionCnt
 The number of missions in the sheet.
int totalMissionCnt
 The total mission count across the campaign.
BOOL isEvent
 Whether this is an event sheet.
NSString * updateTime
 The sheet's version tag.
NSString * sheetStartDate
 When the sheet becomes visible.
NSString * sheetEndDate
 When the sheet stops being visible.
NSString * sheetBgURL
 The sheet's background image URL.
ChallengeMissionReward * reward
 The sheet's reward.
NSArray * missionTable
 The ChallengeMissionTerms for each mission.
NSArray * missionAchieveTable
 The ChallengeMissionAchieve for each mission, when every mission has one.
NSArray * missionSimpleTable
 The ChallengeMissionPlayTerm for each mission.
BOOL enableSave
 Whether the sheet holds a complete, saveable mission list.

Detailed Description

A challenge mission sheet's identity, dates, reward, and mission tables.

Method Documentation

◆ checkMissionSheet

- (BOOL) checkMissionSheet

Marks the sheet confirmed, reporting whether this call was the one that changed it.

Returns
YES when the sheet had not been confirmed before this call.
Ghidra address:
0x1f2084
Ghidra address:
0x1f2084

◆ generateMissionDictionary

- (NSDictionary *) generateMissionDictionary

Builds the "mission_list" dictionary mapping each mission's dictionary to its boxed id.

Returns
The mission dictionary, or nil when there are no missions.
Ghidra address:
0x1f1e5c
Ghidra address:
0x1f1e5c

◆ generateMissionSheetDictionary

- (NSMutableDictionary *) generateMissionSheetDictionary

Writes the sheet back out in the server's dictionary format.

Returns
The sheet dictionary.
Ghidra address:
0x1f1ac4
Ghidra address:
0x1f1ac4

◆ generateSaveData

- (NSData *) generateSaveData

Ciphers an archived copy of the sheet for local persistence.

Returns
The ciphered archived data, or nil when the sheet is not saveable.
Ghidra address:
0x1f1994
Ghidra address:
0x1f1994

◆ init

- (instancetype) init

Returns an empty sheet.

Returns
The initialised sheet.
Ghidra address:
0x1f0c08
Ghidra address:
0x1f0c08

◆ initWithData:sheetID:

- (BOOL) initWithData: (nullable NSData *) data
sheetID: (int) sheetID 

Deciphers and unarchives a saved sheet, filling the object in when its id matches.

Parameters
dataThe ciphered, archived sheet data.
sheetIDThe expected sheet identifier.
Returns
YES when the data deciphered, unarchived, and matched sheetID .
Ghidra address:
0x1f0fd0

◆ initWithDictionary:

- (void) initWithDictionary: (nullable NSDictionary *) dictionary

Fills the sheet in from a server dictionary.

Parameters
dictionaryThe server's sheet record.
Ghidra address:
0x1f0c40

◆ updateMissionAchieves:

- (void) updateMissionAchieves: (nullable NSDictionary *) dictionary

Rebuilds the achievement and play-term tables from an achievement dictionary.

For each mission term, looks up its achievement record by the "%d" -formatted mission id, building a ChallengeMissionAchieve and a ChallengeMissionPlayTerm ; the achievement table is kept only when every mission matched.

Parameters
dictionaryThe achievement records keyed by mission id.
Ghidra address:
0x1f1584

◆ updateMissionTerms:

- (void) updateMissionTerms: (nullable NSDictionary *) dictionary

Rebuilds the mission-terms table (and the reward) from a server dictionary.

Sorts the "mission_list" entries by ascending numeric key, builds a ChallengeMissionTerms for each, and marks the sheet saveable only when the built count matches missionCnt .

Parameters
dictionaryThe server's sheet record.
Ghidra address:
0x1f1134

Property Documentation

◆ bConfirmed

- (BOOL) bConfirmed
readnonatomicassign

Whether the player has confirmed (seen) the sheet.

Wire key "confirm_flag".

◆ isEvent

- (BOOL) isEvent
readnonatomicassign

Whether this is an event sheet.

Wire key "is_event".

◆ missionCnt

- (int) missionCnt
readnonatomicassign

The number of missions in the sheet.

Wire key "amount".

◆ missionTable

- (NSArray*) missionTable
readnonatomicassign

The ChallengeMissionTerms for each mission.

Built from wire key "mission_list".

◆ reward

- (ChallengeMissionReward*) reward
readnonatomicassign

The sheet's reward.

Wire key "reward".

◆ sheetEndDate

- (NSString*) sheetEndDate
readnonatomicassign

When the sheet stops being visible.

Wire key "view_end". Defaults to empty string.

◆ sheetID

- (int) sheetID
readnonatomicassign

The sheet's identifier.

Wire key "sheet_id".

◆ sheetName

- (NSString*) sheetName
readnonatomicassign

The sheet's display name.

Wire key "name".

◆ sheetStartDate

- (NSString*) sheetStartDate
readnonatomicassign

When the sheet becomes visible.

Wire key "view_start". Defaults to the empty string.

◆ totalMissionCnt

- (int) totalMissionCnt
readnonatomicassign

The total mission count across the campaign.

Wire key "total".

◆ updateTime

- (NSString*) updateTime
readnonatomicassign

The sheet's version tag.

Wire key "version". Defaults to the empty string.


The documentation for this class was generated from the following files: