OpenTTD Source 20250331-master-g3c15e0c889
|
NewGRF Action 0x05 handler. More...
#include "../stdafx.h"
#include "../debug.h"
#include "../gfx_type.h"
#include "../newgrf_act5.h"
#include "../spritecache.h"
#include "newgrf_bytereader.h"
#include "newgrf_internal.h"
#include "../table/sprites.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
static uint16_t | SanitizeSpriteOffset (uint16_t &num, uint16_t offset, int max_sprites, const std::string_view name) |
Sanitize incoming sprite offsets for Action 5 graphics replacements. | |
std::span< const Action5Type > | GetAction5Types () |
Get list of all action 5 types. | |
static void | GraphicsNew (ByteReader &buf) |
static void | SkipAct5 (ByteReader &buf) |
Variables | |
static constexpr auto | _action5_types |
The information about action 5 types. | |
NewGRF Action 0x05 handler.
Definition in file newgrf_act5.cpp.
std::span< const Action5Type > GetAction5Types | ( | ) |
Get list of all action 5 types.
Definition at line 87 of file newgrf_act5.cpp.
References _action5_types.
Referenced by SpriteAlignerWindow::GetWidgetString().
|
static |
Definition at line 93 of file newgrf_act5.cpp.
|
static |
Sanitize incoming sprite offsets for Action 5 graphics replacements.
num | The number of sprites to load. |
offset | Offset from the base. |
max_sprites | The maximum number of sprites that can be loaded in this action 5. |
name | Used for error warnings. |
Definition at line 30 of file newgrf_act5.cpp.
|
static |
Definition at line 182 of file newgrf_act5.cpp.
|
staticconstexpr |
The information about action 5 types.
Definition at line 52 of file newgrf_act5.cpp.
Referenced by GetAction5Types().