Merge remote-tracking branch 'origin/samual/serverlist'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / oo / interface.h
1 #ifndef INTERFACE
2 #define INTERFACE
3 #endif
4
5 #ifdef IMPLEMENTATION
6 #undef IMPLEMENTATION
7 #endif
8
9 #ifdef CLASS
10 #undef CLASS
11 #undef EXTENDS
12 #undef METHOD
13 #undef ATTRIB
14 #undef ATTRIBARRAY
15 #undef ENDCLASS
16 #undef SUPER
17 #endif
18
19 #define CLASS(cname)                       entity spawn##cname(); entity cname##_vtbl;
20 #define EXTENDS(base)
21 #define METHOD(cname,name,prototype)       prototype cname##_##name; .prototype name;
22 #define ATTRIB(cname,name,type,val)        .type name;
23 #define ATTRIBARRAY(cname,name,type,cnt)   .type name[cnt];
24 #define ENDCLASS(cname)                    .float instanceOf##cname;
25 #define SUPER(cname)