equal
deleted
inserted
replaced
28 PLAYER_NEW_COMPANY = 254, ///< The client wants a new company |
28 PLAYER_NEW_COMPANY = 254, ///< The client wants a new company |
29 PLAYER_SPECTATOR = 255, ///< The client is spectating |
29 PLAYER_SPECTATOR = 255, ///< The client is spectating |
30 }; |
30 }; |
31 DECLARE_POSTFIX_INCREMENT(Owner); |
31 DECLARE_POSTFIX_INCREMENT(Owner); |
32 |
32 |
|
33 enum { |
|
34 MAX_LENGTH_PRESIDENT_NAME = 31, ///< The maximum length for a president's name |
|
35 MAX_LENGTH_COMPANY_NAME = 31, ///< The maximum length for a company's name |
|
36 }; |
|
37 |
33 /** Define basic enum properties */ |
38 /** Define basic enum properties */ |
34 template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {}; |
39 template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {}; |
35 typedef TinyEnumT<Owner> OwnerByte; |
40 typedef TinyEnumT<Owner> OwnerByte; |
36 |
41 |
37 typedef Owner PlayerID; |
42 typedef Owner PlayerID; |