OpenTTD Source  20241108-master-g80f628063a
SpriteGroupCargo Namespace Reference

Sprite Group Cargo types. More...

Variables

static constexpr CargoID SG_DEFAULT = NUM_CARGO
 Default type used when no more-specific cargo matches.
 
static constexpr CargoID SG_PURCHASE = NUM_CARGO + 1
 Used in purchase lists before an item exists.
 
static constexpr CargoID SG_DEFAULT_NA = NUM_CARGO + 2
 Used only by stations and roads when no more-specific cargo matches.
 

Detailed Description

Sprite Group Cargo types.

These special cargo types are used when resolving sprite groups when non-cargo-specific sprites or callbacks are needed, e.g. in purchase lists, or if no specific cargo type sprite group is supplied.