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

Method IsRawIndustry

src/industry_cmd.cpp:3183–3186  ·  view source on GitHub ↗

* Is an industry with the spec a raw industry? * @return true if it should be handled as a raw industry */

Source from the content-addressed store, hash-verified

3181 * @return true if it should be handled as a raw industry
3182 */
3183bool IndustrySpec::IsRawIndustry() const
3184{
3185 return this->life_type.Any({IndustryLifeType::Extractive, IndustryLifeType::Organic});
3186}
3187
3188/**
3189 * Is an industry with the spec a processing industry?

Callers 6

GetConstructionCostMethod · 0.95
CmdBuildIndustryFunction · 0.45
SetupArraysMethod · 0.45
GetWidgetStringMethod · 0.45
OnClickMethod · 0.45
IsProductionAlterableFunction · 0.45

Calls 1

AnyMethod · 0.80

Tested by

no test coverage detected