-#ifdef INTERFACE
-CLASS(XonoticCharmap) EXTENDS(Item)
+#ifndef CHARMAP_H
+#define CHARMAP_H
+#include "../item.qc"
+CLASS(XonoticCharmap, Item)
METHOD(XonoticCharmap, configureXonoticCharmap, void(entity, entity))
METHOD(XonoticCharmap, mousePress, float(entity, vector))
METHOD(XonoticCharmap, mouseRelease, float(entity, vector))
entity makeXonoticCharmap(entity controlledInputBox)
{
entity me;
- me = spawnXonoticCharmap();
+ me = NEW(XonoticCharmap);
me.configureXonoticCharmap(me, controlledInputBox);
return me;
}