1 #include "../registry.qh"
7 const int MAX_ITEMS = 24;
8 entity ITEMS[MAX_ITEMS], ITEMS_first, ITEMS_last;
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, m_id)
12 REGISTER_REGISTRY(RegisterItems)
14 #define ITEMS_FOREACH(pred, body) do { \
15 for (int i = 0; i < ITEM_COUNT; i++) { \
16 const noref entity it = ITEMS[i]; \
25 #include "inventory.qh"