JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ScoreRecord.h
Go to the documentation of this file.
1
8
9#import <CoreData/CoreData.h>
10#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
18@interface ScoreRecord : NSManagedObject
19
21@property(nonatomic, strong, nullable) NSNumber *tuneID;
23@property(nonatomic, strong, nullable) NSNumber *fcBas;
25@property(nonatomic, strong, nullable) NSNumber *fcAdv;
27@property(nonatomic, strong, nullable) NSNumber *fcExt;
29@property(nonatomic, strong, nullable) NSData *mbBas;
31@property(nonatomic, strong, nullable) NSData *mbAdv;
33@property(nonatomic, strong, nullable) NSData *mbExt;
35@property(nonatomic, strong, nullable) NSNumber *scoBas;
37@property(nonatomic, strong, nullable) NSNumber *scoAdv;
39@property(nonatomic, strong, nullable) NSNumber *scoExt;
41@property(nonatomic, strong, nullable) NSDate *lastPlayDate;
43@property(nonatomic, strong, nullable) NSNumber *playCount;
45@property(nonatomic, strong, nullable) NSNumber *pmBas;
47@property(nonatomic, strong, nullable) NSNumber *pmAdv;
49@property(nonatomic, strong, nullable) NSNumber *pmExt;
51@property(nonatomic, strong, nullable) NSNumber *fcCheck;
53@property(nonatomic, strong, nullable) NSData *chksco;
54
61+ (nullable ScoreRecord *)recordForTuneID:(unsigned int)tuneID;
62
69+ (nullable NSArray<ScoreRecord *> *)recordsForTuneIDs:(nullable NSArray *)tuneIDs;
70
76+ (nullable NSArray<ScoreRecord *> *)allRecords;
77
84+ (nullable ScoreRecord *)createRecordWithTuneID:(unsigned int)tuneID;
85
91+ (void)reset:(nullable ScoreRecord *)record;
92
105+ (void)hashScoreforTune:(int)tuneID
106 bas:(int)bas
107 adv:(int)adv
108 ext:(int)ext
109 hash:(unsigned char *)hash;
110
117+ (nullable NSData *)hashScore:(nullable ScoreRecord *)record;
118
125+ (BOOL)checkScore:(nullable ScoreRecord *)record;
126
132+ (NSInteger)totalScore;
133
134@end
135
136NS_ASSUME_NONNULL_END
137
138// code: language=Objective-C
139// kate: hl Objective-C;
140// vim: set ft=objc :
One tune's scores, as stored by Core Data: the per-difficulty best score, play-mode marker,...
Definition ScoreRecord.h:19
nullable NSArray< ScoreRecord * > * allRecords()
Fetches every record.
Definition ScoreRecord.m:67
NSNumber * fcExt
Whether the extreme chart was full-combo'd.
Definition ScoreRecord.h:27
NSNumber * fcBas
Whether the basic chart was full-combo'd.
Definition ScoreRecord.h:23
NSNumber * scoExt
The extreme chart's best score.
Definition ScoreRecord.h:39
NSDate * lastPlayDate
The last time this tune was played.
Definition ScoreRecord.h:41
NSNumber * fcCheck
Whether the full-combo state has been checked.
Definition ScoreRecord.h:51
NSData * mbExt
The extreme chart's full-marker blob.
Definition ScoreRecord.h:33
NSInteger totalScore()
The sum of every valid, untampered score across the current music list.
Definition ScoreRecord.m:170
NSNumber * scoBas
The basic chart's best score.
Definition ScoreRecord.h:35
NSNumber * playCount
The number of times this tune was played.
Definition ScoreRecord.h:43
NSNumber * scoAdv
The advanced chart's best score.
Definition ScoreRecord.h:37
NSNumber * fcAdv
Whether the advanced chart was full-combo'd.
Definition ScoreRecord.h:25
NSData * mbAdv
The advanced chart's full-marker blob.
Definition ScoreRecord.h:31
NSData * chksco
The tamper-check digest over the three scores.
Definition ScoreRecord.h:53
NSNumber * pmExt
The extreme chart's play-mode marker.
Definition ScoreRecord.h:49
NSNumber * tuneID
The tune identifier.
Definition ScoreRecord.h:21
NSNumber * pmBas
The basic chart's play-mode marker.
Definition ScoreRecord.h:45
NSNumber * pmAdv
The advanced chart's play-mode marker.
Definition ScoreRecord.h:47
NSData * mbBas
The basic chart's full-marker blob.
Definition ScoreRecord.h:29