2024-05-25 18:31:09 +00:00
|
|
|
#include "th01/resident.hpp"
|
|
|
|
|
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,
|
2023-02-05 03:32:10 +00:00
|
|
|
int8_t rem_bombs,
|
2023-02-04 20:35:26 +00:00
|
|
|
int8_t credit_lives_extra,
|
2021-11-20 17:30:49 +00:00
|
|
|
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.
|
2023-02-11 11:02:26 +00:00
|
|
|
int resident_stuff_get(uint8_t& rank, unsigned long& rand, 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);
|