Transifex autosync
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / vehicles / all.qh
1 #pragma once
2
3 #include "vehicle.qh"
4
5 REGISTRY(Vehicles, BITS(4))
6 REGISTER_REGISTRY(Vehicles)
7 REGISTRY_CHECK(Vehicles)
8
9 const int VEH_FIRST = 1;
10 #define VEH_LAST (REGISTRY_COUNT(Vehicles) - 1)
11
12 #define REGISTER_VEHICLE(id, inst) REGISTER(Vehicles, VEH, id, vehicleid, inst)
13
14 #if defined(SVQC)
15         #include "sv_vehicles.qh"
16 #elif defined(CSQC)
17         #include "cl_vehicles.qh"
18 #endif
19
20 REGISTER_VEHICLE(Null, NEW(Vehicle));
21 REGISTRY_DEFINE_GET(Vehicles, VEH_Null)
22
23 #include "vehicle/_mod.qh"