]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/all.qh
e22bcd7477c3e8e2ea534f65deb1c20430c1502f
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / all.qh
1 #include "../registry.qh"
2
3 #ifndef ITEMS_ALL_H
4 #define ITEMS_ALL_H
5
6 void RegisterItems();
7 const int MAX_ITEMS = 24;
8 entity ITEMS[MAX_ITEMS], ITEMS_first, ITEMS_last;
9 int ITEM_COUNT;
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, m_id, NEW(class))
12 REGISTER_REGISTRY(RegisterItems)
13
14 void Dump_Items();
15
16 #endif
17
18 #include "inventory.qh"