GRF: Allow railtype custom signal sprites for programmable pre-signals

This commit is contained in:
Jonathan G Rennison
2020-09-26 11:21:49 +01:00
parent 3cb1327012
commit d32672a325
8 changed files with 61 additions and 20 deletions

View File

@@ -41,6 +41,11 @@ enum RailTypeFlags {
};
DECLARE_ENUM_AS_BIT_SET(RailTypeFlags)
/** Railtype control flags. */
enum RailTypeCtrlFlags {
RTCF_PROGSIG = 0, ///< Custom signal sprites enabled for programmable pre-signals.
};
struct SpriteGroup;
/** Sprite groups for a railtype. */
@@ -208,6 +213,11 @@ public:
*/
RailTypeFlags flags;
/**
* Bit mask of rail type control flags
*/
byte ctrl_flags;
/**
* Cost multiplier for building this rail type
*/