Batch #12520 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_24153 CSession::EndSkillOption: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
36 lines
792 B
C++
36 lines
792 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:
|
|
friend class CSession;
|
|
/* 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
|