27 for(
auto game :
games) {
37 weekly_successes += 1;
41 successes[game] = util::max(successes[game] - 1, 0);
various minigame state structs
Definition minigame_state.h:4
constexpr unsigned int minigame_count
max number of minigame_type
Definition minigame_state.h:13
minigame_game
enum for each minigame
Definition minigame_state.h:6
const minigame_game games[]
convenience array of minigames
Definition minigame_state.h:15
void on_success(minigame_game game)
called when a minigame is completed successfully
Definition minigame_state.h:34
void init()
initialize the struct
Definition minigame_state.h:26
int weekly_successes
minigame total successes that is reset every week. used to display expectation during the week
Definition minigame_state.h:24
void weekly_reset()
called when the week changes
Definition minigame_state.h:44
void on_failure(minigame_game game)
called when a minigame is failed
Definition minigame_state.h:40