rodecomp/Source/Contents/EffectResourceSwitcher.h
ragnarok-clanker 88d8e9e378 Decompile 2 functions in Source/Contents/EffectResourceSwitcher.cpp, Source/Contents/EffectResourceSwitcher.h, ...
Batch #1977 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_03113 EffectResourceSwitcher::Slot16: logic confirmed by peer review
- fn_03115 Singleton<CEZ2STREffectMgr>::GetInstance: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, eAthena
Reviewed-by: ragnarok-clanker
2026-10-29 08:58:09 +00:00

44 lines
1.2 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTRESOURCESWITCHER_H
#define RAGNAROK_SOURCE_CONTENTS_EFFECTRESOURCESWITCHER_H
#include "Contents/Effects/Effect.h"
#include "Utility/Singleton.h"
#include <cstddef>
#include <map>
#include <string>
struct EZ2STREffectInfo {
/* 0000 */ int id;
/* 0004 */ std::string name;
/* 001C */ int unknown_001C[3];
/* 0028 */ std::string unknown_0028;
/* 0040 */ int unknown_0040[2];
};
class CEZ2STREffectMgr : public Singleton<CEZ2STREffectMgr> {
public:
/* 0004 */ std::map<std::string, EZ2STREffectInfo> effects;
};
class EffectResourceSwitcher : public CEffect {
public:
/* 00CC */ unsigned char active;
/* 00CD */ unsigned char unknown_00CD[3];
/* 00D0 */ CEffect* effect;
/* 00D4 */ int unknown_00D4[3];
/* 00E0 */ std::string sourceName;
/* 00F8 */ std::string targetName;
void Slot16(int argument) override;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(EZ2STREffectInfo) == 0x48);
static_assert(sizeof(CEZ2STREffectMgr) == 0xC);
static_assert(offsetof(EffectResourceSwitcher, effect) == 0xD0);
static_assert(offsetof(EffectResourceSwitcher, targetName) == 0xF8);
static_assert(sizeof(EffectResourceSwitcher) == 0x110);
#endif
#endif