diff options
Diffstat (limited to 'src/newgrf_debug.h')
-rw-r--r-- | src/newgrf_debug.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/newgrf_debug.h b/src/newgrf_debug.h index 81af478ed..f217a8fc7 100644 --- a/src/newgrf_debug.h +++ b/src/newgrf_debug.h @@ -13,6 +13,24 @@ #define NEWGRF_DEBUG_H #include "newgrf.h" +#include "vehicle_type.h" + +/** Current state of spritepicker */ +enum NewGrfDebugSpritePickerMode { + SPM_NONE, + SPM_WAIT_CLICK, + SPM_REDRAW, +}; + +/** Spritepicker of SpriteAligner */ +struct NewGrfDebugSpritePicker { + NewGrfDebugSpritePickerMode mode; ///< Current state + void *clicked_pixel; ///< Clicked pixel (pointer to blitter buffer) + uint32 click_time; ///< Realtime tick when clicked to detect next frame + SmallVector<SpriteID, 256> sprites; ///< Sprites found +}; + +extern NewGrfDebugSpritePicker _newgrf_debug_sprite_picker; /** * Can we inspect the data given a certain feature and index. |