11typedef struct PlayerItem_ {
int player_inventoryAdd(const char *name, int amount)
Adds an item to the player inventory.
void player_inventoryClear(void)
Clears the inventory and frees memory.
int player_inventoryRemove(const char *name, int amount)
Removes an item from the player inventory.
const PlayerItem * player_inventory(void)
Gets the whole player inventory.
int player_inventoryAmount(const char *name)
Gets the amount of an item the player has.
Represents an item in the player inventory.