adding bools into player components to enable items in inventory

This commit is contained in:
Clément Le Bihan
2020-04-29 00:32:22 +02:00
parent 0818f3abc4
commit 5d4501902c
10 changed files with 50 additions and 32 deletions
+1
View File
@@ -15,6 +15,7 @@ struct player_component
{
gc_component base;
int fight_rate;
bool inventory_upgrades[4];
};
extern const struct player_component player_component;
+1 -1
View File
@@ -11,7 +11,7 @@
#include "engine.h"
#include <stdbool.h>
void display_inventory_object(gc_scene *scene, struct renderer *rend, int nb);
void display_inv_slot(gc_scene *scene, struct renderer *rend, int nb);
bool toggle_inventory(gc_engine *engine);
#endif //MY_RPG_INVENTORY_H