OpenTTD Source: CargoTypeMapSpriteGroupHandler< T, Tclass > Struct Template Reference

OpenTTD Source 15.3

Public Member Functions
CargoTypeMapSpriteGroupHandler< T, Tclass > Struct Template Reference

Common handler for mapping sprite groups for features which support cargo-type specific sprites. More...

Inheritance diagram for CargoTypeMapSpriteGroupHandler< T, Tclass >:

## Public Member Functions
void | MapSpecific (uint16_t local_id, uint8_t cid, const SpriteGroup *group) override
void | MapDefault (uint16_t local_id, const SpriteGroup *group) override

## Detailed Description

template<typename T, typename Tclass>
struct CargoTypeMapSpriteGroupHandler< T, Tclass >

Common handler for mapping sprite groups for features which support cargo-type specific sprites.

Definition at line 194 of file newgrf_act3.cpp.

## Member Function Documentation

## ◆ MapDefault()

template<typename T , typename Tclass >

void CargoTypeMapSpriteGroupHandler< T, Tclass >::MapDefault | ( | uint16_t | local_id,
|  | const SpriteGroup * | group
| ) |  |
| inlineoverridevirtual

Implements MapSpriteGroupHandler.

Definition at line 207 of file newgrf_act3.cpp.

## ◆ MapSpecific()

template<typename T , typename Tclass >

void CargoTypeMapSpriteGroupHandler< T, Tclass >::MapSpecific | ( | uint16_t | local_id,
|  | uint8_t | cid,
|  | const SpriteGroup * | group
| ) |  |
| inlineoverridevirtual

Implements MapSpriteGroupHandler.

Definition at line 195 of file newgrf_act3.cpp.

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

- src/newgrf/newgrf_act3.cpp