Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ aiRatingToLevel
Function
aiRatingToLevel
src/OpenLoco/src/Objects/CompetitorObject.cpp:131–134 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
129
};
130
131
[[nodiscard]] StringId aiRatingToLevel(const uint8_t rating)
132
{
133
return aiRatingToLevelArray[std::min(rating, static_cast<uint8_t>(aiRatingToLevelArray.size()))];
134
}
135
}
Callers
2
drawAIdetails
Function · 0.85
drawDescription
Method · 0.85
Calls
1
size
Method · 0.45
Tested by
no test coverage detected