14#import <Foundation/Foundation.h>
18NS_ASSUME_NONNULL_BEGIN
28@property(nonatomic, readonly, nullable) NSString *
sheetName;
30@property(nonatomic, readonly)
int sheetID;
36@property(nonatomic, readonly) BOOL
isEvent;
38@property(nonatomic, readonly, nullable) NSString *
updateTime;
45@property(nonatomic, readonly, nullable) NSString *
sheetBgURL;
69- (void)initWithDictionary:(nullable NSDictionary *)dictionary;
78- (BOOL)initWithData:(nullable NSData *)data sheetID:(
int)sheetID;
88- (void)updateMissionTerms:(nullable NSDictionary *)dictionary;
99- (void)updateMissionAchieves:(nullable NSDictionary *)dictionary;
A challenge-mission reward, as sent by the server.
Definition ChallengeMissionReward.h:26
A challenge mission sheet's identity, dates, reward, and mission tables.
Definition ChallengeMissionSheet.h:24
BOOL checkMissionSheet()
Marks the sheet confirmed, reporting whether this call was the one that changed it.
Definition ChallengeMissionSheet.m:211
int totalMissionCnt
The total mission count across the campaign.
Definition ChallengeMissionSheet.h:34
int sheetID
The sheet's identifier.
Definition ChallengeMissionSheet.h:30
NSString * sheetName
The sheet's display name.
Definition ChallengeMissionSheet.h:28
nullable NSMutableDictionary * generateMissionSheetDictionary()
Writes the sheet back out in the server's dictionary format.
Definition ChallengeMissionSheet.m:174
ChallengeMissionReward * reward
The sheet's reward.
Definition ChallengeMissionSheet.h:47
int missionCnt
The number of missions in the sheet.
Definition ChallengeMissionSheet.h:32
NSString * updateTime
The sheet's version tag.
Definition ChallengeMissionSheet.h:38
BOOL isEvent
Whether this is an event sheet.
Definition ChallengeMissionSheet.h:36
NSArray * missionAchieveTable
The ChallengeMissionAchieve for each mission, when every mission has one.
Definition ChallengeMissionSheet.h:51
nullable NSDictionary * generateMissionDictionary()
Builds the "mission_list" dictionary mapping each mission's dictionary to its boxed id.
Definition ChallengeMissionSheet.m:197
BOOL bConfirmed
Whether the player has confirmed (seen) the sheet.
Definition ChallengeMissionSheet.h:26
NSString * sheetBgURL
The sheet's background image URL.
Definition ChallengeMissionSheet.h:45
instancetype init()
Returns an empty sheet.
Definition ChallengeMissionSheet.m:50
NSArray * missionTable
The ChallengeMissionTerms for each mission.
Definition ChallengeMissionSheet.h:49
nullable NSData * generateSaveData()
Ciphers an archived copy of the sheet for local persistence.
Definition ChallengeMissionSheet.m:161
NSString * sheetEndDate
When the sheet stops being visible.
Definition ChallengeMissionSheet.h:43
NSArray * missionSimpleTable
The ChallengeMissionPlayTerm for each mission.
Definition ChallengeMissionSheet.h:53
BOOL enableSave
Whether the sheet holds a complete, saveable mission list.
Definition ChallengeMissionSheet.h:55
NSString * sheetStartDate
When the sheet becomes visible.
Definition ChallengeMissionSheet.h:41