Merge remote-tracking branch 'remotes/origin/master' into TimePath/itemsys
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qh
1 #ifndef ALL_H
2 #define ALL_H
3
4 const int MAX_ITEMS = 24;
5 entity ITEMS[MAX_ITEMS];
6
7 #define ITEMS_FOREACH(pred, body) do {      \
8     for (int i = 0; i < ITEM_COUNT; i++) {  \
9         const noref entity it = ITEMS[i];   \
10         if (pred) { body }                  \
11     }                                       \
12 } while(0)
13
14 void RegisterItems();
15 void Dump_Items();
16
17 #endif
18
19 #include "inventory.qh"