|
JubeatPlus 3.9.11
|
A mission's identity, state and progress detail. More...
#include <ChallengeMissionAchieve.h>


Instance Methods | |
| (instancetype) | - init |
| Returns an empty record with the three identifiers set to -1. | |
| (BOOL) | - initWithDictionary: |
| Loads every field from a server record. | |
| (void) | - updateAchieve: |
| Merges a later server record into this one. | |
Properties | |
| int | missionID |
| The mission this record is about. | |
| int | achievementID |
| The achievement within that mission. | |
| int | missionState |
| The mission's state. | |
| NSDictionary * | achieveDetail |
| The per-mission progress detail, copied on load. | |
| NSString * | termCompleteDate |
| The clear date, as the server's text. | |
A mission's identity, state and progress detail.
Every property is readonly; the two loaders below write the ivars directly.
| - (instancetype) init |
Returns an empty record with the three identifiers set to -1.
| - (BOOL) initWithDictionary: | (nullable NSDictionary *) | dict |
Loads every field from a server record.
**This returns BOOL, not an object,** despite its name. The metadata encodes it B24@0:8@16 and the body ends in a bare mov w0,#1 — it also never chains to -init or [super init]. It is a loader wearing an initialiser's name, and it always answers YES.
| dict | The server's record. |
| - (void) updateAchieve: | (nullable NSDictionary *) | dict |
Merges a later server record into this one.
Does nothing unless the record's mission identifier matches this one's. Each remaining field is applied only if the record carries its key, so a partial record updates only what it mentions.
| dict | The server's record. |
|
readnonatomicassign |
The achievement within that mission.
-1 until loaded.
|
readnonatomicassign |
The mission this record is about.
-1 until loaded.
|
readnonatomicassign |
The mission's state.
-1 until loaded.
|
readnonatomicassign |
The clear date, as the server's text.
Retained on load, not copied.