3 #include <common/command/_mod.qh>
7 // NOTE: 24 is the limit for the .items field
10 REGISTRY_DEPENDS(Items, Models)
12 REGISTER_REGISTRY(Items)
13 #define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
16 // Copy Items registry here before it gets sorted alphabetically by REGISTRY_SORT
17 // so we can keep items sorted by categories (as they appear in the code)
18 IntrusiveList default_order_items;
19 STATIC_INIT(default_order_items)
21 default_order_items = IL_NEW();
22 FOREACH(Items, true, {
23 IL_PUSH(default_order_items, it);
31 REGISTRY_DEFINE_GET(Items, NULL)
32 STATIC_INIT(Items) { FOREACH(Items, true, it.m_id = i); }
36 GENERIC_COMMAND(dumpitems, "Dump all items to the console", false) {
38 case CMD_REQUEST_COMMAND: {
43 case CMD_REQUEST_USAGE: {
44 LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " dumpitems");
51 string Item_Model(string item_mdl);