MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / id

Method id

src/OpenLoco/src/World/CompanyManager.cpp:1472–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470namespace OpenLoco
1471{
1472 CompanyId Company::id() const
1473 {
1474 auto* first = &CompanyManager::rawCompanies()[0];
1475 return CompanyId(this - first);
1476 }
1477}

Callers 6

updateMonthly1Function · 0.45
createCompanyFunction · 0.45
produceCompaniesFunction · 0.45
competingColourMaskFunction · 0.45

Calls 1

CompanyIdEnum · 0.85

Tested by

no test coverage detected