2022-08-15 01:17:54 +00:00
|
|
|
// Allocates the resident structure if it doesn't exist yet, and initializes
|
|
|
|
// the given bunch of data with the respective values.
|
|
|
|
void resident_create_and_stuff_set(
|
2021-11-20 17:30:49 +00:00
|
|
|
int8_t rank,
|
|
|
|
bgm_mode_t bgm_mode,
|
|
|
|
int8_t bombs,
|
|
|
|
int8_t start_lives_extra,
|
|
|
|
long rand
|
|
|
|
);
|
|
|
|
|
2022-08-14 04:21:01 +00:00
|
|
|
// Retrieves another incomplete bunch of data from the resident structure.
|
|
|
|
// Returns 0 on success, 1 on error.
|
|
|
|
int resident_stuff_get(
|
2022-08-14 05:41:03 +00:00
|
|
|
int8_t& rank,
|
2022-08-15 07:50:42 +00:00
|
|
|
bgm_mode_t& bgm_mode,
|
2022-08-14 05:41:03 +00:00
|
|
|
int8_t& bombs,
|
|
|
|
int8_t& start_lives_extra,
|
2022-08-14 04:21:01 +00:00
|
|
|
unsigned long& rand,
|
|
|
|
long& continues_total,
|
|
|
|
int& stage_id
|
|
|
|
);
|
2021-11-20 17:30:49 +00:00
|
|
|
|
2022-08-15 01:17:54 +00:00
|
|
|
// Frees the resident structure if it exists.
|
2021-11-20 17:30:49 +00:00
|
|
|
void resident_free(void);
|