forked from mirror/OpenTTD
(svn r22405) -Document: some more "random-ish" tidbits
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user