-#ifdef INTERFACE
-CLASS(XonoticCrosshairPreview) EXTENDS(Item)
+#ifndef CROSSHAIRPREVIEW_H
+#define CROSSHAIRPREVIEW_H
+#include "../item.qc"
+CLASS(XonoticCrosshairPreview, Item)
METHOD(XonoticCrosshairPreview, configureXonoticCrosshairPreview, void(entity))
METHOD(XonoticCrosshairPreview, draw, void(entity))
ATTRIB(XonoticCrosshairPreview, src, string, string_null)
entity makeXonoticCrosshairPreview()
{
entity me;
- me = spawnXonoticCrosshairPreview();
+ me = NEW(XonoticCrosshairPreview);
me.configureXonoticCrosshairPreview(me);
return me;
}