3 #include <common/command/all.qh>
7 REGISTRY(Items, BITS(5))
8 #define Items_from(i) _Items_from(i, NULL)
9 REGISTER_REGISTRY(Items)
10 #define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
14 STATIC_INIT(Items) { FOREACH(Items, true, it.m_id = i); }
18 GENERIC_COMMAND(dumpitems, "Dump all items to the console") {
20 case CMD_REQUEST_COMMAND: {
25 case CMD_REQUEST_USAGE: {
26 LOG_INFOF("\nUsage:^3 %s dumpitems", GetProgramCommandPrefix());
33 string Item_Model(string item_mdl);