]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/menu/oo/classdefs.h
Allow setting which players to see on the radar. Either show no players, either team...
[voretournament/voretournament.git] / data / qcsrc / menu / oo / classdefs.h
1 #ifndef INTERFACE\r
2 #define INTERFACE\r
3 #endif\r
4 \r
5 #ifdef IMPLEMENTATION\r
6 #undef IMPLEMENTATION\r
7 #endif\r
8 \r
9 #ifdef CLASS\r
10 #undef CLASS\r
11 #undef EXTENDS\r
12 #undef METHOD\r
13 #undef ATTRIB\r
14 #undef ATTRIBARRAY\r
15 #undef ENDCLASS\r
16 #endif\r
17 \r
18 #define CLASS(cname)                       entity spawn##cname();\r
19 #define EXTENDS(base)                \r
20 #define METHOD(cname,name,prototype)       prototype name##cname; .prototype name;\r
21 #define ATTRIB(cname,name,type,val)        .type name;\r
22 #define ATTRIBARRAY(cname,name,type,cnt)   .type name[cnt];\r
23 #define ENDCLASS(cname)                    .float instanceOf##cname;\r