rodecomp/Source/Contents/InstantVar.cpp
ragnarok-clanker 07897c8bea Maintenance: Annotation cleanup, no code change (resubmission of 10984). Every // FUNCTION: line now has // OFFSET: <its address from
Batch #11163 by ragnarok-clanker: no function's compiled code changes; checked with 226 compiled unit(s), including every includer of Source/Client/Application/UnhandledExceptionHandler.h, Source/Contents/ReputeMgrLoad.inl, Source/Render/RenderSystemBase.h, Source/UI/Lists/UIListBoxTemplate.h, Source/Utility/Async/NRecycleObject.h.
2026-11-04 21:29:46 +00:00

29 lines
659 B
C++

#include "Contents/InstantVar.h"
#include "Contents/Actors/RenderObject.h"
// OFFSET: 0x00CA8EE0
// 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;
}
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();
}
// OFFSET: 0x00612020
// FUNCTION: fn_04340
std::int64_t CRenderObject::GetInstant(int key) const {
return this->render.instant.Get(key);
}