]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/vehicles/all.qh
Merge branch 'master' into TimePath/unified_weapons
[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 void RegisterVehicles();
7 const int VEH_MAXCOUNT = 24;
8 entity vehicle_info[VEH_MAXCOUNT], vehicle_info_first, vehicle_info_last;
9 Vehicle get_vehicleinfo(int id);
10 int VEH_COUNT;
11 const int VEH_FIRST = 1;
12 #define VEH_LAST (VEH_FIRST + VEH_COUNT - 1)
13 /** If you register a new vehicle, make sure to add it to all.inc */
14 #define REGISTER_VEHICLE(id, inst) REGISTER(RegisterVehicles, VEH, vehicle_info, VEH_COUNT, id, vehicleid, inst)
15 REGISTER_REGISTRY(RegisterVehicles)
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