Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
all.qh
Go to the documentation of this file.
1#pragma once
2
3#include "model.qh"
4
5REGISTRY(Models, BITS(9))
7
8#define MODEL(name, path) \
9 string MDL_##name##_get() { return path; } \
10 REGISTER(Models, MDL, name, m_id, NEW(Model, MDL_##name##_get))
11
13{
14 precache_model("null");
15}
16
17PRECACHE(Models) {
18 FOREACH(Models, true, it.model_precache(it));
19}
20
21MODEL(Null, "null");
22REGISTRY_DEFINE_GET(Models, MDL_Null)
23#include "all.inc"
#define BITS(n)
Definition bits.qh:9
#define FOREACH(list, cond, body)
Definition iter.qh:19
#define MODEL(name, path)
Definition all.qh:8
#define REGISTER_REGISTRY(id)
Definition registry.qh:229
#define REGISTRY(id, max)
Declare a new registry.
Definition registry.qh:26
#define REGISTRY_DEFINE_GET(id, null)
Definition registry.qh:40
#define STATIC_INIT(func)
during worldspawn
Definition static.qh:32
#define PRECACHE(func)
directly after STATIC_INIT_LATE
Definition static.qh:42