rodecomp/Source/Resource/RmaResource.h
ragnarok-clanker fadbd61fcd Decompile 2 functions in Source/Resource/RmaResource.cpp, Source/Resource/RmaResource.h
Batch #11788 by SapitoSucio: 2 byte-identical, 0 confirmed by peer review.

- fn_07770 CRmaRes::CRmaRes: byte-identical
- fn_07753 CRmaRes::Create: byte-identical (already on main)

Merged automatically: every function is byte-identical to the original.
2026-11-05 04:48:51 +00:00

43 lines
1.1 KiB
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_RMARESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_RMARESOURCE_H
#include "Resource/Resource.h"
#include <cstddef>
#include <string>
#include <vector>
struct RmaAction {
/* 0000 */ int startFrame = -1;
/* 0004 */ int endFrame = -1;
/* 0008 */ int delay = 4;
/* 000C */ std::vector<int> frames;
};
class CRmaRes : public CRes {
public:
CRmaRes();
~CRmaRes() override;
CRmaRes* Create() override;
bool Load(const char* name) override;
void Unload() override;
/* 0110 */ std::vector<RmaAction> actions;
/* 011C */ std::vector<std::string> models;
/* 0128 */ std::vector<int> actionModels;
/* 0134 */ float interiorZoom = 1.0f;
/* 0138 */ float shadowZoom;
/* 013C */ int interiorOffsetX = 0;
/* 0140 */ int interiorOffsetY = 0;
/* 0144 */ int interiorFrameStart = 0;
/* 0148 */ int interiorFrameEnd = 0;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(RmaAction) == 0x18);
static_assert(offsetof(CRmaRes, actions) == 0x110);
static_assert(offsetof(CRmaRes, interiorZoom) == 0x134);
static_assert(sizeof(CRmaRes) == 0x14C);
#endif
#endif