3 #include <common/command/_mod.qh>
7 REGISTRY(Items, BITS(7))
8 #define Items_from(i) _Items_from(i, NULL)
10 REGISTRY_DEPENDS(Items, Models)
12 REGISTER_REGISTRY(Items)
13 #define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
17 STATIC_INIT(Items) { FOREACH(Items, true, it.m_id = i); }
21 GENERIC_COMMAND(dumpitems, "Dump all items to the console") {
23 case CMD_REQUEST_COMMAND: {
28 case CMD_REQUEST_USAGE: {
29 LOG_INFOF("Usage:^3 %s dumpitems", GetProgramCommandPrefix());
36 string Item_Model(string item_mdl);