MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / Get

Method Get

Sources/Jazz2/Compatibility/AnimSetMapping.cpp:2025–2038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2023 }
2024
2025 AnimSetMapping::Entry* AnimSetMapping::Get(std::uint32_t set, std::uint32_t item)
2026 {
2027 if (set > UINT16_MAX || item > UINT16_MAX) {
2028 return nullptr;
2029 }
2030
2031 std::uint32_t key = (set << 16) | item;
2032 auto it = _entries.find(key);
2033 if (it != _entries.end()) {
2034 return &it->second;
2035 } else {
2036 return nullptr;
2037 }
2038 }
2039
2040 AnimSetMapping::Entry* AnimSetMapping::GetByOrdinal(std::uint32_t index)
2041 {

Callers 2

ImportAnimationsMethod · 0.45
ImportAudioSamplesMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected