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:
MeirGavish
2026-05-31 12:32:27 +03:00
committed by GitHub
parent 63b6584706
commit 8dc96b6bbb
4 changed files with 69 additions and 63 deletions
+16
View File
@@ -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
*/