]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/oo/interface.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / oo / interface.qh
1 #ifndef INTERFACE_H
2 #define INTERFACE_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6     #include "../../common/util-pre.qh"
7     #include "../sys-pre.qh"
8     #include "../../dpdefs/menudefs.qc"
9     #include "../../dpdefs/keycodes.qc"
10     #include "../sys-post.qh"
11     #include "../config.qh"
12     #include "../../warpzonelib/mathlib.qh"
13     #include "../../common/util.qh"
14     #include "../../common/test.qh"
15     #include "base.qh"
16     #include "../../common/playerstats.qh"
17     #include "../../common/teams.qh"
18     #include "../../common/constants.qh"
19     #include "../../common/mapinfo.qh"
20     #include "../../common/campaign_common.qh"
21     #include "../../common/weapons/weapons.qh"
22     #include "../../common/counting.qh"
23     #include "../../common/command/markup.qh"
24     #include "../../common/command/rpn.qh"
25     #include "../../common/command/generic.qh"
26     #include "../../common/command/shared_defs.qh"
27     #include "../../common/urllib.qh"
28     #include "../../common/monsters/monsters.qh"
29     #include "../command/menu_cmd.qh"
30     #include "../menu.qh"
31     #include "../draw.qh"
32     #include "../skin.qh"
33     #include "../xonotic/util.qh"
34 #elif defined(SVQC)
35 #endif
36
37 #ifndef INTERFACE
38 #define INTERFACE
39 #endif
40
41 #ifdef IMPLEMENTATION
42 #undef IMPLEMENTATION
43 #endif
44
45 #ifdef CLASS
46 #undef CLASS
47 #undef EXTENDS
48 #undef METHOD
49 #undef ATTRIB
50 #undef ATTRIBARRAY
51 #undef ENDCLASS
52 #undef SUPER
53 #endif
54
55 #define CLASS(cname)                       entity spawn##cname(); entity cname##_vtbl;
56 #define EXTENDS(base)
57 #define METHOD(cname,name,prototype)       prototype cname##_##name; .prototype name;
58 #define ATTRIB(cname,name,type,val)        .type name;
59 #define ATTRIBARRAY(cname,name,type,cnt)   .type name[cnt];
60 #define ENDCLASS(cname)                    .float instanceOf##cname;
61 #define SUPER(cname)
62 #endif