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

Function GetAcceptedCargoOfHouse

src/town_cmd.cpp:858–864  ·  view source on GitHub ↗

* Get accepted cargo of a house prototype. * @param hs Spec of the house. * @return CargoArray filled with cargo accepted by the house. */

Source from the content-addressed store, hash-verified

856 * @return CargoArray filled with cargo accepted by the house.
857 */
858CargoArray GetAcceptedCargoOfHouse(const HouseSpec *hs)
859{
860 CargoTypes always_accepted{};
861 CargoArray acceptance{};
862 AddAcceptedCargoOfHouse(INVALID_TILE, hs->Index(), hs, nullptr, acceptance, always_accepted);
863 return acceptance;
864}
865
866static void GetTileDesc_Town(TileIndex tile, TileDesc &td)
867{

Callers 1

GetHouseInformationMethod · 0.85

Calls 2

AddAcceptedCargoOfHouseFunction · 0.85
IndexMethod · 0.45

Tested by

no test coverage detected