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

Function get

src/OpenLoco/src/World/CompanyManager.cpp:168–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 Company* get(CompanyId id)
169 {
170 auto index = enumValue(id);
171 if (index < Limits::kMaxCompanies)
172 {
173 return &rawCompanies()[index];
174 }
175 return nullptr;
176 }
177
178 CompanyId getControllingId()
179 {

Callers 12

getPlayerCompanyFunction · 0.70
updateFunction · 0.70
createCompanyFunction · 0.70
createPlayerCompanyFunction · 0.70
getOpponentFunction · 0.70
getOwnerStatusFunction · 0.70
updateOwnerStatusFunction · 0.70
applyPaymentToCompanyFunction · 0.70
ensureCompanyFundingFunction · 0.70
setPreferredNameFunction · 0.70
setPreferredCompanyNameFunction · 0.70
aiDestroyFunction · 0.70

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected