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

Function updateColours

src/OpenLoco/src/World/CompanyManager.cpp:1203–1212  ·  view source on GitHub ↗

0x004302EF

Source from the content-addressed store, hash-verified

1201
1202 // 0x004302EF
1203 void updateColours()
1204 {
1205 size_t index = 0;
1206 for (auto& company : rawCompanies())
1207 {
1208 _companyColours[index] = company.mainColours.primary;
1209 index++;
1210 }
1211 _companyColours[enumValue(CompanyId::neutral)] = Colour::grey;
1212 }
1213
1214 // 0x004C95A6
1215 void setPreferredName()

Callers 4

resetFunction · 0.85
createCompanyFunction · 0.85
importSaveToGameStateFunction · 0.85
changeCompanyColourFunction · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected