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

Function enumValue

src/Engine/include/OpenLoco/Engine/Types.hpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 // To be replaced with std::to_underlying in c++23
10 template<typename TEnum>
11 constexpr auto enumValue(TEnum enumerator) noexcept
12 {
13 return static_cast<std::underlying_type_t<TEnum>>(enumerator);
14 }
15
16 using coord_t = int16_t;
17 using tile_coord_t = int16_t;

Callers 15

getPreviousStepFunction · 0.85
getNextStepFunction · 0.85
getFunction · 0.85
postFunction · 0.85
removeFunction · 0.85
sub_428E47Function · 0.85
Message.cppFile · 0.85
logDivergentEntityOffsetFunction · 0.85
Config.cppFile · 0.85
writeFunction · 0.85
setCurrentMonthFunction · 0.85
updateFunction · 0.85

Calls

no outgoing calls

Tested by 1

drawScrollFunction · 0.68