Xonotic
all.qh
Go to the documentation of this file.
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 
21 REGISTRY_DEFINE_GET(Vehicles, VEH_Null)
22 
23 #include "vehicle/_mod.qh"
REGISTRY(Weapons, 72) STATIC_INIT(WeaponPickup)
Definition: all.qh:28
#define REGISTER_VEHICLE(id, inst)
Definition: all.qh:12
#define NEW(cname,...)
Definition: oo.qh:105
const int VEH_FIRST
Definition: all.qh:9
#define REGISTRY_CHECK(id)
Definition: registry.qh:175
#define REGISTER_REGISTRY(id)
Definition: registry.qh:212
#define REGISTRY_DEFINE_GET(id, null)
Definition: registry.qh:40
#define BITS(n)
Definition: bits.qh:9