]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/models/all.qh
Remove uses of LAMBDA(), not handled well by uncrustify
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / models / all.qh
1 #ifndef MODELS_ALL_H
2 #define MODELS_ALL_H
3
4 #include "model.qh"
5
6 REGISTRY(Models, BITS(9))
7 #define Models_from(i) _Models_from(i, MDL_Null)
8 REGISTER_REGISTRY(Models)
9
10 #define MODEL(name, path) \
11     string MDL_##name##_get() { return path; } \
12     REGISTER(Models, MDL, name, m_id, NEW(Model, MDL_##name##_get))
13
14 PRECACHE(Models) {
15     FOREACH(Models, true, it.model_precache(it));
16 }
17
18 MODEL(Null, "null");
19 #include "all.inc"
20
21 #endif