JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMissionSheet.h
Go to the documentation of this file.
1
13
14#import <Foundation/Foundation.h>
15
17
18NS_ASSUME_NONNULL_BEGIN
19
23@interface ChallengeMissionSheet : NSObject
24
26@property(nonatomic, readonly) BOOL bConfirmed;
28@property(nonatomic, readonly, nullable) NSString *sheetName;
30@property(nonatomic, readonly) int sheetID;
32@property(nonatomic, readonly) int missionCnt;
34@property(nonatomic, readonly) int totalMissionCnt;
36@property(nonatomic, readonly) BOOL isEvent;
38@property(nonatomic, readonly, nullable) NSString *updateTime;
41@property(nonatomic, readonly, nullable) NSString *sheetStartDate;
43@property(nonatomic, readonly, nullable) NSString *sheetEndDate;
45@property(nonatomic, readonly, nullable) NSString *sheetBgURL;
47@property(nonatomic, readonly, nullable) ChallengeMissionReward *reward;
49@property(nonatomic, readonly, nullable) NSArray *missionTable;
51@property(nonatomic, readonly, nullable) NSArray *missionAchieveTable;
53@property(nonatomic, readonly, nullable) NSArray *missionSimpleTable;
55@property(nonatomic, readonly) BOOL enableSave;
56
62- (instancetype)init;
63
69- (void)initWithDictionary:(nullable NSDictionary *)dictionary;
70
78- (BOOL)initWithData:(nullable NSData *)data sheetID:(int)sheetID;
79
88- (void)updateMissionTerms:(nullable NSDictionary *)dictionary;
89
99- (void)updateMissionAchieves:(nullable NSDictionary *)dictionary;
100
106- (nullable NSData *)generateSaveData;
107
113- (nullable NSMutableDictionary *)generateMissionSheetDictionary;
114
120- (nullable NSDictionary *)generateMissionDictionary;
121
127- (BOOL)checkMissionSheet;
128
129@end
130
131NS_ASSUME_NONNULL_END
132
133// code: language=Objective-C
134// kate: hl Objective-C;
135// vim: set ft=objc :
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