Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas. 449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
24 lines
539 B
C++
24 lines
539 B
C++
#include "Contents/InstantVar.h"
|
|
|
|
// OFFSET: 0x00CA8EE0
|
|
// OFFSET: 0x00CA9260
|
|
// FUNCTION: fn_20997
|
|
CInstantVar::~CInstantVar() = default;
|
|
|
|
// OFFSET: 0x00D559B0
|
|
// FUNCTION: fn_21952
|
|
void CInstantVar::Set(int key, std::int64_t value) {
|
|
this->m_values[key] = value;
|
|
}
|
|
|
|
// OFFSET: 0x00612020
|
|
// OFFSET: 0x0091BE20
|
|
std::int64_t CInstantVar::Get(int key) const {
|
|
const auto entry = this->m_values.find(key);
|
|
return entry == this->m_values.end() ? 0 : entry->second;
|
|
}
|
|
|
|
// INLINED
|
|
void CInstantVar::Clear() {
|
|
this->m_values.clear();
|
|
}
|