22uint16_t GetCargoCallback(
CallbackID callback, uint32_t param1, uint32_t param2,
const CargoSpec *cs, std::span<int32_t> regs100 = {});
Types related to cargoes...
uint8_t CargoType
Cargo slots to indicate a cargo type within a game.
Types related to the graphics and/or input devices.
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Callbacks that NewGRFs could implement.
CallbackID
List of implemented NewGRF callbacks.
std::span< const CargoLabel > GetClimateDependentCargoTranslationTable()
Get default climate-dependent cargo translation table for a NewGRF, used if the NewGRF does not provi...
SpriteID GetCustomCargoSprite(const CargoSpec *cs)
Get the custom sprite for the given cargo type.
std::span< const CargoLabel > GetClimateIndependentCargoTranslationTable()
Get default climate-independent cargo translation table for a NewGRF, used if the NewGRF does not pro...
CargoType GetCargoTranslation(uint8_t cargo, const GRFFile *grffile, bool usebit=false)
Translate a GRF-local cargo slot/bitnum into a CargoType.
Specification of a cargo type.
Dynamic data of a loaded NewGRF.