OpenTTD Source 20260206-master-g4d4e37dbf1
RoadTypeMapSpriteGroupHandler< TRoadTramType > Struct Template Reference
Inheritance diagram for RoadTypeMapSpriteGroupHandler< TRoadTramType >:
MapSpriteGroupHandler

Public Member Functions

void MapSpecific (uint16_t local_id, uint8_t cid, const SpriteGroup *group) override
 Map a SpriteGroup to specific 'cargo type' of a specification.
void MapDefault (uint16_t, const SpriteGroup *) override
 Map default/fallback SpriteGroup to a specification.

Detailed Description

template<RoadTramType TRoadTramType>
struct RoadTypeMapSpriteGroupHandler< TRoadTramType >

Definition at line 298 of file newgrf_act3.cpp.

Member Function Documentation

◆ MapDefault()

template<RoadTramType TRoadTramType>
void RoadTypeMapSpriteGroupHandler< TRoadTramType >::MapDefault ( uint16_t local_id,
const SpriteGroup * group )
inlineoverridevirtual

Map default/fallback SpriteGroup to a specification.

Parameters
local_idThe NewGRF-local id to map to.
groupThe SpriteGroup to link to the specification.

Implements MapSpriteGroupHandler.

Definition at line 313 of file newgrf_act3.cpp.

◆ MapSpecific()

template<RoadTramType TRoadTramType>
void RoadTypeMapSpriteGroupHandler< TRoadTramType >::MapSpecific ( uint16_t local_id,
uint8_t cid,
const SpriteGroup * group )
inlineoverridevirtual

Map a SpriteGroup to specific 'cargo type' of a specification.

Parameters
local_idThe NewGRF-local id to map to.
cidThe 'cargo type' to map for.
groupThe SpriteGroup to link to the specification.

Implements MapSpriteGroupHandler.

Definition at line 299 of file newgrf_act3.cpp.

References RoadTypeInfo::grffile, RoadTypeInfo::group, INVALID_ROADTYPE, ROADTYPE_END, and RTT_TRAM.


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