|
OpenTTD Source 20260304-master-g1baaa74679
|
Common handler for mapping sprite groups for features which support cargo-type specific sprites. More...
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 local_id, const SpriteGroup *group) override |
| Map default/fallback SpriteGroup to a specification. | |
| Public Member Functions inherited from MapSpriteGroupHandler | |
| virtual | ~MapSpriteGroupHandler ()=default |
| Ensure the destructor of the sub classes are called as well. | |
Common handler for mapping sprite groups for features which support cargo-type specific sprites.
Definition at line 213 of file newgrf_act3.cpp.
|
inlineoverridevirtual |
Map default/fallback SpriteGroup to a specification.
| local_id | The NewGRF-local id to map to. |
| group | The SpriteGroup to link to the specification. |
Implements MapSpriteGroupHandler.
Definition at line 226 of file newgrf_act3.cpp.
References GetSpec(), CargoGRFFileProps::SG_DEFAULT, and T.
|
inlineoverridevirtual |
Map a SpriteGroup to specific 'cargo type' of a specification.
| local_id | The NewGRF-local id to map to. |
| cid | The 'cargo type' to map for. |
| group | The SpriteGroup to link to the specification. |
Implements MapSpriteGroupHandler.
Definition at line 214 of file newgrf_act3.cpp.
References GetSpec(), IsValidCargoType(), and T.