summaryrefslogtreecommitdiff
path: root/src/vehicle_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-05-01 19:14:12 +0000
committerrubidium <rubidium@openttd.org>2011-05-01 19:14:12 +0000
commit1a515e6344028854c855671c19f49d8f869eb18f (patch)
treee1bba97c1a8fd80f564729cc2d5fc2049110cb2a /src/vehicle_type.h
parentb27dd1dcd7375dae63724879eb0f56dd703e5312 (diff)
downloadopenttd-1a515e6344028854c855671c19f49d8f869eb18f.tar.xz
(svn r22405) -Document: some more "random-ish" tidbits
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;