OpenTTD Source: GRFFileProps Struct Reference

OpenTTD Source 15.0-beta1

Public Member Functions | Data Fields
GRFFileProps Struct Reference

Data related to the handling of grf files. More...

`#include <newgrf_commons.h>`

Inheritance diagram for GRFFileProps:

## Public Member Functions
constexpr | GRFFileProps (uint16_t subst_id=0)
| Set all default data constructor for the props.
Public Member Functions inherited from GRFFilePropsBase< 1 >
bool | HasGrfFile () const
| Test if this entity was introduced by NewGRF.

## Data Fields
uint16_t | subst_id
uint16_t | override
| id of the entity been replaced by
Data Fields inherited from GRFFilePropsBase< 1 >
uint16_t | local_id
| id defined by the grf file for this entity
uint32_t | grfid
| grfid that introduced this entity.
const struct GRFFile * | grffile
| grf file that introduced this entity
std::array< const struct SpriteGroup *, Tcnt > | spritegroup
| pointers to the different sprites of the entity

## Detailed Description

Data related to the handling of grf files.

Definition at line 324 of file newgrf_commons.h.

## Constructor & Destructor Documentation

## ◆ GRFFileProps()

constexpr GRFFileProps::GRFFileProps | ( | uint16_t | subst_id = `0` | ) |
| inlineconstexpr

Set all default data constructor for the props.

Definition at line 326 of file newgrf_commons.h.

## Field Documentation

## ◆ override

uint16_t GRFFileProps::override

id of the entity been replaced by

Definition at line 329 of file newgrf_commons.h.

Referenced by AirportSpec::Get(), GetAirportTileIDAtOffset(), GetIndustryIDAtOffset(), GetTranslatedAirportTileID(), GetTranslatedHouseID(), GetTranslatedIndustryTileID(), HouseOverrideManager::SetEntitySpec(), IndustryOverrideManager::SetEntitySpec(), and TryBuildTownHouse().

## ◆ subst_id

uint16_t GRFFileProps::subst_id

Definition at line 328 of file newgrf_commons.h.

The documentation for this struct was generated from the following file:

- src/newgrf_commons.h