MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetCargoCallback

Function GetCargoCallback

src/newgrf_cargo.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65uint16_t GetCargoCallback(CallbackID callback, uint32_t param1, uint32_t param2, const CargoSpec *cs, std::span<int32_t> regs100)
66{
67 CargoResolverObject object(cs, callback, param1, param2);
68 return object.ResolveCallback(regs100);
69}
70
71/**
72 * Translate a GRF-local cargo slot/bitnum into a CargoType.

Callers 2

UpdateStationRatingFunction · 0.85

Calls 1

ResolveCallbackMethod · 0.80

Tested by

no test coverage detected