1 #include "../registry.qh"
7 const int MAX_ITEMS = 24;
8 entity ITEMS[MAX_ITEMS];
10 /** If you register a new item, make sure to add it to all.inc */
11 #define REGISTER_ITEM(id, class) REGISTER(RegisterItems, ITEM, ITEMS, ITEM_COUNT, id, class)
13 #define ITEMS_FOREACH(pred, body) do { \
14 for (int i = 0; i < ITEM_COUNT; i++) { \
15 const noref entity it = ITEMS[i]; \
24 #include "inventory.qh"