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