A challenge mission sheet's identity, dates, reward, and mission tables.
More...
#include <ChallengeMissionSheet.h>
|
| (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.
|
A challenge mission sheet's identity, dates, reward, and mission tables.
◆ 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
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
-
| data | The ciphered, archived sheet data. |
| sheetID | The 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
-
| dictionary | The 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
-
| dictionary | The 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
-
| dictionary | The server's sheet record. |
- Ghidra address:
- 0x1f1134
◆ bConfirmed
Whether the player has confirmed (seen) the sheet.
Wire key "confirm_flag".
◆ isEvent
Whether this is an event sheet.
Wire key "is_event".
◆ missionCnt
The number of missions in the sheet.
Wire key "amount".
◆ missionTable
| - (NSArray*) missionTable |
|
readnonatomicassign |
◆ reward
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
The sheet's identifier.
Wire key "sheet_id".
◆ sheetName
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
The total mission count across the campaign.
Wire key "total".
◆ updateTime
The sheet's version tag.
Wire key "version". Defaults to the empty string.
The documentation for this class was generated from the following files: