X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Foo%2Fbase.qh;h=894b4b92859f166b9aff791589a2965fd82c76c4;hp=55af8adb84cfa4ddbba23e7eb60f4089be48a557;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hpb=4dd3c23aa51dd6fe855d8c5d97126a12a372eb3b diff --git a/qcsrc/menu/oo/base.qh b/qcsrc/menu/oo/base.qh index 55af8adb84..894b4b9285 100644 --- a/qcsrc/menu/oo/base.qh +++ b/qcsrc/menu/oo/base.qh @@ -1,31 +1,9 @@ #ifndef BASE_H #define BASE_H -.string classname; -entity Object_vtbl; -.string vtblname; -.entity vtblbase; -// THIS LINE INTENTIONALLY LEFT BLANK -entity spawnVtbl(entity e, entity b) -{ - entity v; - v = spawn(); - copyentity(e, v); - v.vtblname = v.classname; - v.classname = "vtbl"; - if(b) - v.vtblbase = b; - else - v.vtblbase = v; - return v; -} -entity spawnObject() -{ - entity e; - e = spawn(); - e.classname = "Object"; - if(!Object_vtbl) - Object_vtbl = spawnVtbl(e, null_entity); - return e; -} +#include "../../common/util.qh" +#include "../../dpdefs/keycodes.qh" + +#define world NULL + #endif