Batch #1446 by Yommy: 22 byte-identical, 0 confirmed by peer review. - fn_03083 CEffect::Slot10: byte-identical - fn_03084 CEffect::Slot08: byte-identical - fn_03090 CEffect::Slot28: byte-identical - fn_03092 CEffect::Slot01: byte-identical - fn_03094 CEffect::Slot12: byte-identical - fn_03095 CEffect::Slot07: byte-identical - fn_03098 CEffect::Slot04: byte-identical - fn_03099 CEffect::Slot00: byte-identical - fn_03100 CEffect::Slot23: byte-identical - fn_03101 CEffect::Slot24: byte-identical - fn_03102 CEffect::Slot26: byte-identical - fn_03103 CEffect::Slot27: byte-identical - fn_03104 CEffect::Slot21: byte-identical - fn_03105 CEffect::Slot32: byte-identical - fn_03106 CEffect::Slot15: byte-identical - fn_03107 CEffect::Slot14: byte-identical - fn_03108 CEffect::Slot17: byte-identical - fn_03109 CEffect::Slot18: byte-identical - fn_03110 CEffect::Slot19: byte-identical - fn_03111 CEffect::Slot22: byte-identical - fn_03112 CEffect::Slot13: byte-identical - fn_03114 CEffect::Slot20: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Contents/EffectResourceSwitcher.cpp
87 lines
2.5 KiB
C++
87 lines
2.5 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECT_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECT_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <list>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct EffectVector3;
|
|
|
|
struct EffectEvent {
|
|
/* 0000 */ int kind;
|
|
/* 0004 */ int frame;
|
|
/* 0008 */ int argument;
|
|
/* 000C */ std::string text;
|
|
};
|
|
|
|
class CEffect {
|
|
public:
|
|
explicit CEffect(int id);
|
|
virtual ~CEffect();
|
|
virtual void Close();
|
|
virtual void Slot00(int argument);
|
|
virtual void Slot01();
|
|
virtual void Slot04();
|
|
virtual void Slot07();
|
|
virtual void Slot08(int argument1, int argument2, int argument3);
|
|
virtual void Slot10(int argument);
|
|
virtual void Slot11(std::string name);
|
|
virtual void Slot12();
|
|
virtual void Slot13(int argument);
|
|
virtual void Slot14(int argument);
|
|
virtual void Slot15(int argument);
|
|
virtual void Slot17(int argument);
|
|
virtual void Slot18(int argument);
|
|
virtual void Slot19(int argument);
|
|
virtual void Slot20(int argument);
|
|
virtual void Slot21(int argument);
|
|
virtual void Slot22(int argument);
|
|
virtual void Slot23(int argument);
|
|
virtual void Slot24(int argument1, int argument2, int argument3, int argument4, int argument5);
|
|
virtual EffectVector3 Slot25();
|
|
virtual void Slot26(int argument);
|
|
virtual void Slot27(int argument);
|
|
virtual int Slot28();
|
|
virtual void Slot32();
|
|
void AddEvent(int kind, const char* text, int frame, int argument);
|
|
void SetEventFrame(int kind, int frame);
|
|
|
|
/* 0004 */ int id;
|
|
/* 0008 */ float position[3];
|
|
/* 0014 */ float sourcePosition[3];
|
|
/* 0020 */ std::uint32_t actor;
|
|
/* 0024 */ std::uint32_t sourceActor;
|
|
/* 0028 */ int frame;
|
|
/* 002C */ int unknown_002C;
|
|
/* 0030 */ int unknown_0030;
|
|
/* 0034 */ unsigned char outsideRange;
|
|
/* 0035 */ unsigned char unknown_0035[3];
|
|
/* 0038 */ int range;
|
|
/* 003C */ unsigned char unknown_003C[116];
|
|
/* 00B0 */ int unknown_00B0;
|
|
/* 00B4 */ std::vector<EffectEvent> events;
|
|
/* 00C0 */ unsigned char retained;
|
|
/* 00C1 */ unsigned char unknown_00C1;
|
|
/* 00C2 */ unsigned char forceRender;
|
|
/* 00C3 */ unsigned char unknown_00C3;
|
|
/* 00C4 */ int unknown_00C4;
|
|
/* 00C8 */ unsigned char unknown_00C8;
|
|
/* 00C9 */ unsigned char unknown_00C9[3];
|
|
};
|
|
|
|
struct EffectRetirement {
|
|
std::list<CEffect*>& effects;
|
|
void Clear();
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(EffectEvent) == 36);
|
|
static_assert(offsetof(EffectEvent, text) == 0xC);
|
|
static_assert(sizeof(CEffect) == 204);
|
|
static_assert(offsetof(CEffect, events) == 0xB4);
|
|
static_assert(offsetof(CEffect, unknown_00C8) == 0xC8);
|
|
#endif
|
|
|
|
#endif
|