]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/sounds/all.qh
Merge branch 'terencehill/renderflags_update' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / sounds / all.qh
1 #pragma once
2
3 #include "sound.qh"
4
5 REGISTRY(Sounds, BITS(9))
6 #define Sounds_from(i) _Sounds_from(i, SND_Null)
7 REGISTER_REGISTRY(Sounds)
8
9 #define SOUND(name, path) \
10     string SND_##name##_get() { return path; } \
11     REGISTER(Sounds, SND, name, m_id, NEW(Sound, SND_##name##_get))
12
13 /** @deprecated Used in places where a string is required for legacy reasons, prefer using SND_id constants instead */
14 #define SND(id) Sound_fixpath(SND_##id)
15
16 PRECACHE(Sounds) {
17     FOREACH(Sounds, true, it.sound_precache(it));
18 }
19
20 SOUND(Null, "misc/null");
21 #include "all.inc"
22 #include "all.qc"