rodecomp/Source/Resource/ImfResource.h
ragnarok-clanker 3053d2345e Decompile fn_07924 (CImfRes::Create)
Batch #7791 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_07924 CImfRes::Create: logic confirmed by peer review

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

37 lines
826 B
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_IMFRESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_IMFRESOURCE_H
#include "Resource/Resource.h"
#include <windows.h>
#include <vector>
struct ImfData {
/* 0000 */ std::vector<int> priority;
/* 000C */ std::vector<int> cx;
/* 0018 */ std::vector<int> cy;
};
class CImfRes : public CRes {
public:
CImfRes();
CImfRes* Create() override;
bool Load(const char* name) override;
void Reset();
int GetLayer(int priority, int action, int motion);
POINT GetLongPoint(int layer, int action, int motion);
private:
/* 0110 */ std::vector<std::vector<ImfData>> m_imfData;
/* 011C */ int m_maxAction[15];
/* 0158 */ int m_maxMotion[15][104];
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(ImfData) == 36);
static_assert(sizeof(CImfRes) == 0x19B8);
#endif
#endif