Signals: Add variable for signal context (track, tunnel, bridge, etc)

This commit is contained in:
Jonathan G Rennison
2022-06-15 19:03:13 +01:00
parent cf5eef515e
commit 41117a52d2
11 changed files with 170 additions and 33 deletions

View File

@@ -21,7 +21,7 @@
#include "company_type.h"
/** Context for tile accesses */
enum TileContext {
enum TileContext : uint8 {
TCX_NORMAL, ///< Nothing special.
TCX_UPPER_HALFTILE, ///< Querying information about the upper part of a tile with halftile foundation.
TCX_ON_BRIDGE, ///< Querying information about stuff on the bridge (via some bridgehead).
@@ -344,4 +344,12 @@ enum SpriteGroupCallbacksUsed : uint8 {
};
DECLARE_ENUM_AS_BIT_SET(SpriteGroupCallbacksUsed)
enum CustomSignalSpriteContext : uint8 {
CSSC_GUI = 0,
CSSC_TRACK,
CSSC_TUNNEL_BRIDGE_ENTRANCE,
CSSC_TUNNEL_BRIDGE_EXIT,
CSSC_BRIDGE_MIDDLE,
};
#endif /* NEWGRF_COMMONS_H */