(svn r22405) -Document: some more "random-ish" tidbits

This commit is contained in:
rubidium
2011-05-01 19:14:12 +00:00
parent b27dd1dcd7
commit 1a515e6344
35 changed files with 173 additions and 58 deletions

View File

@@ -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;