OpenTTD Source  20241121-master-g67a0fccfad
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 Action5TypeGetAction5Types ()
 Get list of all action 5 types. More...
 

Detailed Description

Information about NewGRF Action 5.

Definition in file newgrf_act5.h.

Enumeration Type Documentation

◆ 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 6405 of file newgrf.cpp.

References _action5_types.