1
0
Fork 0

Codechange: Make sure script enums are the same size as their normal counterparts

pull/8246/head
Charles Pigott 2020-06-27 13:59:15 +01:00
parent 887b912af1
commit dc8d0089e9
5 changed files with 7 additions and 7 deletions

View File

@ -99,7 +99,7 @@ public:
* Types of expenses. * Types of expenses.
* @api -ai * @api -ai
*/ */
enum ExpensesType { enum ExpensesType : byte {
EXPENSES_CONSTRUCTION = ::EXPENSES_CONSTRUCTION, ///< Construction costs. EXPENSES_CONSTRUCTION = ::EXPENSES_CONSTRUCTION, ///< Construction costs.
EXPENSES_NEW_VEHICLES = ::EXPENSES_NEW_VEHICLES, ///< New vehicles. EXPENSES_NEW_VEHICLES = ::EXPENSES_NEW_VEHICLES, ///< New vehicles.
EXPENSES_TRAIN_RUN = ::EXPENSES_TRAIN_RUN, ///< Running costs trains. EXPENSES_TRAIN_RUN = ::EXPENSES_TRAIN_RUN, ///< Running costs trains.

View File

@ -36,7 +36,7 @@ public:
/** /**
* Goal types that can be given to a goal. * Goal types that can be given to a goal.
*/ */
enum GoalType { enum GoalType : byte {
/* Note: these values represent part of the in-game GoalType enum */ /* Note: these values represent part of the in-game GoalType enum */
GT_NONE = ::GT_NONE, ///< Destination is not linked. GT_NONE = ::GT_NONE, ///< Destination is not linked.
GT_TILE = ::GT_TILE, ///< Destination is a tile. GT_TILE = ::GT_TILE, ///< Destination is a tile.

View File

@ -40,7 +40,7 @@ public:
/** /**
* Types of rail known to the game. * Types of rail known to the game.
*/ */
enum RailType { enum RailType : byte {
/* Note: these values represent part of the in-game static values */ /* Note: these values represent part of the in-game static values */
RAILTYPE_INVALID = ::INVALID_RAILTYPE, ///< Invalid RailType. RAILTYPE_INVALID = ::INVALID_RAILTYPE, ///< Invalid RailType.
}; };

View File

@ -60,7 +60,7 @@ public:
/** /**
* Road/tram types * Road/tram types
*/ */
enum RoadTramTypes { enum RoadTramTypes : uint8 {
ROADTRAMTYPES_ROAD = ::RTTB_ROAD, ///< Road road types. ROADTRAMTYPES_ROAD = ::RTTB_ROAD, ///< Road road types.
ROADTRAMTYPES_TRAM = ::RTTB_TRAM, ///< Tram road types. ROADTRAMTYPES_TRAM = ::RTTB_TRAM, ///< Tram road types.
}; };

View File

@ -57,7 +57,7 @@ public:
/** /**
* Story page element types. * Story page element types.
*/ */
enum StoryPageElementType { enum StoryPageElementType : byte {
SPET_TEXT = ::SPET_TEXT, ///< An element that displays a block of text. SPET_TEXT = ::SPET_TEXT, ///< An element that displays a block of text.
SPET_LOCATION = ::SPET_LOCATION, ///< An element that displays a single line of text along with a button to view the referenced location. SPET_LOCATION = ::SPET_LOCATION, ///< An element that displays a single line of text along with a button to view the referenced location.
SPET_GOAL = ::SPET_GOAL, ///< An element that displays a goal. SPET_GOAL = ::SPET_GOAL, ///< An element that displays a goal.
@ -75,7 +75,7 @@ public:
* Formatting and layout flags for story page buttons. * Formatting and layout flags for story page buttons.
* The SPBF_FLOAT_LEFT and SPBF_FLOAT_RIGHT flags can not be combined. * The SPBF_FLOAT_LEFT and SPBF_FLOAT_RIGHT flags can not be combined.
*/ */
enum StoryPageButtonFlags { enum StoryPageButtonFlags : byte {
SPBF_NONE = ::SPBF_NONE, ///< No special formatting for button. SPBF_NONE = ::SPBF_NONE, ///< No special formatting for button.
SPBF_FLOAT_LEFT = ::SPBF_FLOAT_LEFT, ///< Button is placed to the left of the following paragraph. SPBF_FLOAT_LEFT = ::SPBF_FLOAT_LEFT, ///< Button is placed to the left of the following paragraph.
SPBF_FLOAT_RIGHT = ::SPBF_FLOAT_RIGHT, ///< Button is placed to the right of the following paragraph. SPBF_FLOAT_RIGHT = ::SPBF_FLOAT_RIGHT, ///< Button is placed to the right of the following paragraph.
@ -84,7 +84,7 @@ public:
/** /**
* Mouse cursors usable by story page buttons. * Mouse cursors usable by story page buttons.
*/ */
enum StoryPageButtonCursor { enum StoryPageButtonCursor : byte {
SPBC_MOUSE = ::SPBC_MOUSE, SPBC_MOUSE = ::SPBC_MOUSE,
SPBC_ZZZ = ::SPBC_ZZZ, SPBC_ZZZ = ::SPBC_ZZZ,
SPBC_BUOY = ::SPBC_BUOY, SPBC_BUOY = ::SPBC_BUOY,