JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMissionAchieve Class Reference

A mission's identity, state and progress detail. More...

#include <ChallengeMissionAchieve.h>

Inheritance diagram for ChallengeMissionAchieve:
Collaboration diagram for ChallengeMissionAchieve:

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.

Detailed Description

A mission's identity, state and progress detail.

Every property is readonly; the two loaders below write the ivars directly.

Method Documentation

◆ init

- (instancetype) init

Returns an empty record with the three identifiers set to -1.

Returns
The initialised record.
Ghidra address:
0x1eed9c
Ghidra address:
0x1eed9c

◆ initWithDictionary:

- (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.

Parameters
dictThe server's record.
Returns
Always YES.
Ghidra address:
0x1eee00

◆ updateAchieve:

- (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.

Parameters
dictThe server's record.
Ghidra address:
0x1eefc0

Property Documentation

◆ achievementID

- (int) achievementID
readnonatomicassign

The achievement within that mission.

-1 until loaded.

◆ missionID

- (int) missionID
readnonatomicassign

The mission this record is about.

-1 until loaded.

◆ missionState

- (int) missionState
readnonatomicassign

The mission's state.

-1 until loaded.

◆ termCompleteDate

- (NSString*) termCompleteDate
readnonatomicassign

The clear date, as the server's text.

Retained on load, not copied.


The documentation for this class was generated from the following files: