]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/effects/all.qh
Entity debugger
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / effects / all.qh
1 #ifndef EFFECTS_ALL_H
2 #define EFFECTS_ALL_H
3
4 #include "effect.qh"
5
6 #ifdef SVQC
7 void Send_Effect(entity eff, vector eff_loc, vector eff_vel, int eff_cnt);
8 void Send_Effect_(string eff_name, vector eff_loc, vector eff_vel, int eff_cnt);
9 #endif
10
11 REGISTRY(Effects, BIT(8))
12 REGISTER_REGISTRY(RegisterEffects)
13 #define EFFECT(istrail, name, realname) \
14     REGISTER(RegisterEffects, EFFECT, Effects, name, m_id, Create_Effect_Entity(realname, istrail));
15
16 void RegisterEffects_First()
17 {
18     #ifdef SVQC
19     #define dedi (server_is_dedicated ? "a dedicated " : "")
20     #else
21     #define dedi ""
22     #endif
23
24     LOG_TRACEF("Beginning effect initialization on %s%s program...\n", dedi, PROGNAME);
25     #undef dedi
26 }
27
28 void RegisterEffects_Done()
29 {
30     LOG_TRACE("Effects initialization successful!\n");
31 }
32
33 // NOW we actually activate the declarations
34 ACCUMULATE_FUNCTION(RegisterEffects, RegisterEffects_First)
35 EFFECT(0, Null, string_null)
36 #include "all.inc"
37 ACCUMULATE_FUNCTION(RegisterEffects, RegisterEffects_Done)
38
39 #endif