A scratch track resolved from the challenge line-up, with the player's score, rank, and full-combo state per difficulty.
More...
#include <ScratchInfo.h>
|
| (instancetype) | - init: |
| | Builds the track from a store dictionary, looking its details up in the challenge line-up.
|
| (void) | - openUpdate: |
| | Updates the per-difficulty results from a rank dictionary.
|
| (int) | - getMyScore: |
| | The player's score for a difficulty (clamped to the first slot beyond the range).
|
| (int) | - getMyRank: |
| | The player's rank for a difficulty.
|
| (int) | - getMyIndex: |
| | The player's index for a difficulty.
|
| (void) | - setMyRank:rank:index: |
| | Sets the player's rank for a difficulty; the index argument is unused.
|
| (BOOL) | - getFullCombo: |
| | Whether the player has a full combo on a difficulty.
|
|
|
int | musicID |
| | The track's music identifier.
|
| NSInteger | packID |
| | The identifier of the pack this track belongs to.
|
|
BOOL | bOpen |
| | Whether the scratch card for this track has been opened.
|
| NSDate * | endDate |
| | The date this scratch track stops being playable.
|
| NSString * | musicName |
| | The track's title.
|
| NSString * | artistName |
| | The track's artist.
|
|
NSString * | imgURL |
| | The jacket image URL from the challenge line-up.
|
|
NSString * | itemURL |
| | The downloadable song data URL from the challenge line-up.
|
A scratch track resolved from the challenge line-up, with the player's score, rank, and full-combo state per difficulty.
◆ getFullCombo:
| - (BOOL) getFullCombo: |
|
(int) | difficulty |
|
Whether the player has a full combo on a difficulty.
- Parameters
-
| difficulty | The difficulty index. |
- Ghidra address:
- 0x1caae0
- Ghidra address:
- 0x1caae0
◆ getMyIndex:
| - (int) getMyIndex: |
|
(int) | difficulty |
|
The player's index for a difficulty.
Reads the same rank array as -getMyRank: — the binary's getter reads the rank ivar despite its name.
- Parameters
-
| difficulty | The difficulty index. |
- Ghidra address:
- 0x1caaa0
- Ghidra address:
- 0x1caaa0
◆ getMyRank:
| - (int) getMyRank: |
|
(int) | difficulty |
|
The player's rank for a difficulty.
- Parameters
-
| difficulty | The difficulty index. |
- Ghidra address:
- 0x1caa80
- Ghidra address:
- 0x1caa80
◆ getMyScore:
| - (int) getMyScore: |
|
(int) | difficulty |
|
The player's score for a difficulty (clamped to the first slot beyond the range).
- Parameters
-
| difficulty | The difficulty index. |
- Ghidra address:
- 0x1caa60
- Ghidra address:
- 0x1caa60
◆ init:
| - (instancetype) init: |
|
(nullable NSDictionary *) | dictionary |
|
Builds the track from a store dictionary, looking its details up in the challenge line-up.
- Parameters
-
| dictionary | The store dictionary (carries music_id ). |
- Returns
- The initialised track.
- Ghidra address:
- 0x1ca474
◆ openUpdate:
| - (void) openUpdate: |
|
(nullable NSDictionary *) | dictionary |
|
Updates the per-difficulty results from a rank dictionary.
- Parameters
-
| dictionary | The my_rank dictionary. |
- Ghidra address:
- 0x1ca854
◆ setMyRank:rank:index:
| - (void) setMyRank: |
|
(int) | difficulty |
| rank: |
|
(int) | rank |
| index: |
|
(int) | index |
Sets the player's rank for a difficulty; the index argument is unused.
- Parameters
-
| difficulty | The difficulty index. |
| rank | The rank to store (only when non-negative). |
| index | Unused. |
- Ghidra address:
- 0x1caac0
- Ghidra address:
- 0x1caac0
◆ artistName
The track's artist.
- Ghidra address:
- 0x1cab84
◆ endDate
The date this scratch track stops being playable.
- Ghidra address:
- 0x1cabf0
◆ musicName
The track's title.
- Ghidra address:
- 0x1cab60
◆ packID
The identifier of the pack this track belongs to.
- Ghidra address:
- 0x1cab20
The documentation for this class was generated from the following files: