2026-02-20 16:12:16 +01:00

36 lines
668 B
C

#ifndef ITEM_H
# define ITEM_H
#include <core.h>
typedef enum {
ITEM_EQUIPABLE,
ITEM_CONSUMABLE,
ITEM_PLACEABLE,
ITEM_QUEST,
} ITEM_FLAGS;
typedef struct {
int number;
int description;//ref to item description table
int name;//ref to item name table
int rarity;
int flags;
int stack;
} Item;
/*
inventory could be a grid that have an item focused,
the item focused have a description and stats windows on the left,
the focused item is either the one under the mouse
or can be choosen using arrow keys (easier controller support)
*/
typedef struct {
int size;
int capacity;
Item storage[100];
} Inventory;
#endif