rodecomp/Source/Resource/ImfResource.h
ragnarok-clanker 9162deb256 Decompile fn_07938 (CImfRes::GetLayer)
Batch #1560 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_07938 CImfRes::GetLayer: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Resource/ImfLayerIndex.cpp
2026-10-28 19:10:16 +00:00

31 lines
688 B
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_IMFRESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_IMFRESOURCE_H
#include "Resource/Resource.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:
bool Load(const char* name) override;
int GetLayer(int priority, 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