OpenTTD Source 20260711-master-g3fb3006dff
newgrf_act5.h File Reference

Information about NewGRF Action 5. More...

#include "gfx_type.h"

Go to the source code of this file.

Data Structures

struct  Action5Type
 Information about a single action 5 type. More...

Enumerations

enum class  Action5BlockType : uint8_t { Fixed , AllowOffset , Invalid }
 The type of action 5 type. More...

Functions

std::span< const Action5TypeGetAction5Types ()
 Get list of all action 5 types.

Detailed Description

Information about NewGRF Action 5.

Definition in file newgrf_act5.h.

Enumeration Type Documentation

◆ Action5BlockType

enum class Action5BlockType : uint8_t
strong

The type of action 5 type.

Enumerator
Fixed 

Only allow replacing a whole block of sprites. (TTDP compatible).

AllowOffset 

Allow replacing any subset by specifying an offset.

Invalid 

unknown/not-implemented type

Definition at line 16 of file newgrf_act5.h.

Function Documentation

◆ GetAction5Types()

std::span< const Action5Type > GetAction5Types ( )

Get list of all action 5 types.

Returns
Read-only span of action 5 type information.

Definition at line 88 of file newgrf_act5.cpp.

References _action5_types.

Referenced by SpriteAlignerWindow::GetWidgetString().