rodecomp/Source/Contents/Map/MapPropertyMgr.h
ragnarok-clanker 99bf84e393 Confirm fn_20980 (CMapPropertyMgr::Create)
Batch #17044 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_20980 CMapPropertyMgr::Create: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
2026-11-11 13:00:45 +00:00

47 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_MAP_MAPPROPERTYMGR_H
#define RAGNAROK_SOURCE_CONTENTS_MAP_MAPPROPERTYMGR_H
#include <cstddef>
#include <map>
class CMapProperty {
public:
__declspec(noinline) CMapProperty();
virtual ~CMapProperty();
__declspec(noinline) void SetValue(int key, int value);
__declspec(noinline) int GetValue(int key);
/* 0004 */ std::map<int, int> m_values;
};
class CMapPropertyMgr {
public:
// INLINED
CMapPropertyMgr() {
this->m_valid = true;
}
// INLINED
virtual ~CMapPropertyMgr() {
}
static bool Create();
static void Destroy();
void SetValue(int mapId, int key, int value);
void Clear();
int GetValue(int mapId, int key);
/* 0004 */ bool m_valid;
/* 0008 */ std::map<int, CMapProperty> m_properties;
};
extern CMapPropertyMgr* g_mapPropertyMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CMapProperty) == 0xC);
static_assert(sizeof(CMapPropertyMgr) == 0x10);
static_assert(offsetof(CMapPropertyMgr, m_properties) == 0x8);
#endif
#endif