]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/vehicles/all.qh
Merge branch 'terencehill/menu_fixes' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / all.qh
1 #ifndef VEHICLES_ALL_H
2 #define VEHICLES_ALL_H
3
4 #include "vehicle.qh"
5
6 REGISTRY(Vehicles, BITS(4))
7 #define Vehicles_from(i) _Vehicles_from(i, VEH_Null)
8 REGISTER_REGISTRY(Vehicles)
9 REGISTRY_CHECK(Vehicles)
10
11 const int VEH_FIRST = 1;
12 #define VEH_LAST (Vehicles_COUNT - 1)
13
14 /** If you register a new vehicle, make sure to add it to all.inc */
15 #define REGISTER_VEHICLE(id, inst) REGISTER(Vehicles, VEH, id, vehicleid, inst)
16
17 #if defined(SVQC)
18         #include "sv_vehicles.qh"
19 #elif defined(CSQC)
20         #include "cl_vehicles.qh"
21 #endif
22
23 REGISTER_VEHICLE(Null, NEW(Vehicle));
24
25 #include "all.inc"
26
27 #endif