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

Method GetDistributionType

src/script/api/script_cargo.cpp:81–85  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

79}
80
81/* static */ ScriptCargo::DistributionType ScriptCargo::GetDistributionType(CargoType cargo_type)
82{
83 if (!ScriptCargo::IsValidCargo(cargo_type)) return INVALID_DISTRIBUTION_TYPE;
84 return (ScriptCargo::DistributionType)_settings_game.linkgraph.GetDistributionType(cargo_type);
85}
86
87/* static */ SQInteger ScriptCargo::GetWeight(CargoType cargo_type, SQInteger amount)
88{

Callers 7

DeleteStaleLinksFunction · 0.45
ShowCargoMethod · 0.45
DrawEntriesMethod · 0.45
~LinkGraphJobMethod · 0.45
DemandCalculatorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected