4 #include "../command/all.qh"
8 REGISTRY(Items, BITS(5))
9 #define Items_from(i) _Items_from(i, NULL)
10 REGISTER_REGISTRY(RegisterItems)
11 /** If you register a new item, make sure to add it to all.inc */
12 #define REGISTER_ITEM(id, class) REGISTER(RegisterItems, ITEM, Items, id, m_id, NEW(class))
14 REGISTRY_SORT(Items, m_name, 0)
15 STATIC_INIT(Items) { FOREACH(Items, true, LAMBDA(it.m_id = i)); }
19 GENERIC_COMMAND(dumpitems, "Dump all items to the console") {
21 case CMD_REQUEST_COMMAND: {
26 case CMD_REQUEST_USAGE: {
27 LOG_INFOF("\nUsage:^3 %s dumpitems", GetProgramCommandPrefix());
34 string Item_Model(string item_mdl);