rodecomp/Source/Contents/InstantVar.h
ragnarok-clanker 56f0054e7d Decompile 2 functions in Source/Client/ClientOptions.cpp, Source/Contents/InstantVar.h
Batch #12022 by SapitoSucio: 0 byte-identical, 2 confirmed by peer review.

- fn_03937 CSession::SetOption: logic confirmed by peer review
- fn_12610 CSession::GetOption: logic confirmed by peer review

Peer-reviewed-by: Yommy, Tanke
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-05 12:26:47 +00:00

35 lines
767 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_INSTANTVAR_H
#define RAGNAROK_SOURCE_CONTENTS_INSTANTVAR_H
#include <cstdint>
#include <map>
class CInstantVar {
public:
CInstantVar() = default;
virtual ~CInstantVar();
void Set(int key, std::int64_t value);
std::int64_t Get(int key) const;
void Clear();
std::map<int, std::int64_t>& Values();
const std::map<int, std::int64_t>& Values() const;
private:
/* 0004 */ std::map<int, std::int64_t> m_values;
};
// INLINED
inline std::map<int, std::int64_t>& CInstantVar::Values() {
return this->m_values;
}
// INLINED
inline const std::map<int, std::int64_t>& CInstantVar::Values() const {
return this->m_values;
}
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CInstantVar) == 12);
#endif
#endif