-#ifndef ITEMS_ALL_H
-#define ITEMS_ALL_H
+#pragma once
-#include "../command/all.qh"
+#include <common/command/_mod.qh>
#include "item.qh"
-REGISTRY(Items, BITS(5))
+REGISTRY(Items, BITS(7))
#define Items_from(i) _Items_from(i, NULL)
+#ifdef GAMEQC
+REGISTRY_DEPENDS(Items, Models)
+#endif
REGISTER_REGISTRY(Items)
-/** If you register a new item, make sure to add it to all.inc */
#define REGISTER_ITEM(id, class) REGISTER(Items, ITEM, id, m_id, NEW(class))
REGISTRY_SORT(Items)
}
default:
case CMD_REQUEST_USAGE: {
- LOG_INFOF("\nUsage:^3 %s dumpitems", GetProgramCommandPrefix());
+ LOG_INFOF("Usage:^3 %s dumpitems", GetProgramCommandPrefix());
return;
}
}
}
-#ifndef MENUQC
+#ifdef GAMEQC
string Item_Model(string item_mdl);
#endif
-
-#endif