summaryrefslogtreecommitdiff
path: root/src/vehicle_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle_type.h')
-rw-r--r--src/vehicle_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle_type.h b/src/vehicle_type.h
index a1a8b85ab..99231194b 100644
--- a/src/vehicle_type.h
+++ b/src/vehicle_type.h
@@ -14,6 +14,7 @@
#include "core/enum_type.hpp"
+/** The type all our vehicle IDs have. */
typedef uint32 VehicleID;
/** Available vehicle types. */
@@ -28,6 +29,7 @@ enum VehicleType {
VEH_INVALID = 0xFF, ///< Non-existing type of vehicle.
};
DECLARE_POSTFIX_INCREMENT(VehicleType)
+/** Helper information for extract tool. */
template <> struct EnumPropsT<VehicleType> : MakeEnumPropsT<VehicleType, byte, VEH_TRAIN, VEH_END, VEH_INVALID, 3> {};
/** It needs to be 8bits, because we save and load it as such */
typedef SimpleTinyEnumT<VehicleType, byte> VehicleTypeByte;