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