Refactor - Moved shop data structures to shop.c/.h (#521)
* Moved shop data structures to `shop.c/.h` * Renamed static variables and reset function
This commit is contained in:
@@ -6,6 +6,22 @@
|
||||
#ifndef GAME_SHOP_H
|
||||
#define GAME_SHOP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* @brief Initialize the shop for a run.
|
||||
* Resets all the shop data for the run, needs to be called once per run.
|
||||
*/
|
||||
void game_shop_reset(void);
|
||||
|
||||
/**
|
||||
* @brief Set whether a Joker can appear in the shop.
|
||||
*
|
||||
* @param avail - true to make it available to the shop to appear in
|
||||
* false to make it unavailable.
|
||||
*/
|
||||
void game_shop_set_joker_avail(int joker_id, bool avail);
|
||||
|
||||
/**
|
||||
* @brief Change to the shop background
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user