OpenTTD Source: GRFLoadedFeatures Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
GRFLoadedFeatures Struct Reference

## Data Fields
bool | has_2CC
| Set if any vehicle is loaded which uses 2cc (two company colours).
uint64_t | used_liveries
| Bitmask of LiveryScheme used by the defined engines.
ShoreReplacement | shore
| In which way shore sprites were replaced.
TramReplacement | tram
| In which way tram depots were replaced.

## Detailed Description

Definition at line 175 of file newgrf.h.

## Field Documentation

## ◆ has_2CC

bool GRFLoadedFeatures::has_2CC

Set if any vehicle is loaded which uses 2cc (two company colours).

Definition at line 176 of file newgrf.h.

Referenced by AircraftVehicleChangeInfo(), ObjectChangeInfo(), RailVehicleChangeInfo(), ResetNewGRFData(), RoadVehicleChangeInfo(), ShipVehicleChangeInfo(), and SelectCompanyLiveryWindow::UpdateWidgetSize().

## ◆ shore

ShoreReplacement GRFLoadedFeatures::shore

In which way shore sprites were replaced.

Definition at line 178 of file newgrf.h.

Referenced by ActivateOldShore(), and ResetNewGRFData().

## ◆ tram

TramReplacement GRFLoadedFeatures::tram

In which way tram depots were replaced.

Definition at line 179 of file newgrf.h.

Referenced by ActivateOldTramDepot(), DrawRoadDepotSprite(), DrawTile_Road(), and ResetNewGRFData().

## ◆ used_liveries

uint64_t GRFLoadedFeatures::used_liveries

Bitmask of LiveryScheme used by the defined engines.

Definition at line 177 of file newgrf.h.

Referenced by SelectCompanyLiveryWindow::DrawWidget(), FinaliseEngineArray(), SelectCompanyLiveryWindow::OnClick(), SelectCompanyLiveryWindow::OnDropdownSelect(), SelectCompanyLiveryWindow::OnInvalidateData(), and ResetNewGRFData().

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

- src/newgrf.h