OpenTTD Source: src/newgrf_act5.h File Reference

OpenTTD Source 15.0-beta1

Data Structures | Enumerations | Functions
newgrf_act5.h File Reference

Information about NewGRF Action 5. More...

Go to the source code of this file.

## Data Structures
struct | Action5Type
| Information about a single action 5 type. More...

## Enumerations
enum | Action5BlockType { A5BLOCK_FIXED , A5BLOCK_ALLOW_OFFSET , A5BLOCK_INVALID }
| The type of action 5 type. More...

## Functions
std::span< const Action5Type > | GetAction5Types ()
| 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 Action5BlockType

The type of action 5 type.

Enumerator
A5BLOCK_FIXED | Only allow replacing a whole block of sprites. (TTDP compatible)
A5BLOCK_ALLOW_OFFSET | Allow replacing any subset by specifiing an offset.
A5BLOCK_INVALID | unknown/not-implemented type

Definition at line 14 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 6467 of file newgrf.cpp.

References _action5_types.

Referenced by SpriteAlignerWindow::SetStringParameters().