Batch #14681 by ragnarok-clanker: forced by an admin (6 lower score(s), 70 changed function(s)); checked with 555 compiled unit(s), including every includer of Source/Client/Mode/CLoginMode.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Actors/RenderObject.h, Source/Contents/EffectResourceSwitcher.h, Source/Contents/Effects/CartCannon.h, Source/Contents/Effects/EZ2STREffectEx.h, Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/MonsterSkillEffects.h, Source/Contents/Effects/RagEffect.h, Source/Contents/Effects/RectUpEffect.h, Source/Contents/Ground/GroundGeometry.h, Source/Network/Connection/Connection.h, Source/Resource/Audio/WaveResource.h, Source/Resource/Bitmap/BitmapResource.h, Source/Resource/EZeffectResource.h, Source/Resource/EmblemResource.h, Source/Resource/GifResource.h, Source/Resource/ImfResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelResource.h, Source/Resource/PaletteResource.h, Source/Resource/RmaResource.h, Source/Resource/Sprites/ActionResource.h, Source/Resource/Sprites/SpriteResource.h, Source/Resource/World/GroundResource.h, Source/Resource/World/TerrainResource.h, Source/Resource/World/WorldResource.h, Source/UI/Buttons/UIBmpRadioBtn.h, Source/UI/Buttons/UITextButton.h, Source/UI/Item/UIItemPurchaseWnd.h, Source/UI/Item/UIItemSellWnd.h, Source/UI/Item/UIItemSellWnd2.h, Source/UI/Item/UIItemStoreWnd.h, Source/UI/Item/UIItemWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Rodex/UIRodexInboxWnd.h, Source/UI/Shop/UIMerchantItemShopWnd.h, Source/UI/Shop/UIMerchantMirrorItemWnd.h, Source/UI/Shop/UIMerchantShopMakeWnd.h, Source/UI/StylingShop/UIStylingShopWnd.h, Source/UI/UIChangeMaterialWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIItemReformWnd.h, Source/UI/UILapineScrollBar.h, Source/UI/Window/UIHotKeyWnd.h, Source/UI/Window/UINewSelectCharWnd.h.
87 lines
2.1 KiB
C++
87 lines
2.1 KiB
C++
#ifndef RAGNAROK_SOURCE_RESOURCE_EZEFFECTRESOURCE_H
|
|
#define RAGNAROK_SOURCE_RESOURCE_EZEFFECTRESOURCE_H
|
|
|
|
#include "File/File.h"
|
|
#include "Resource/Resource.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
class CTexture;
|
|
|
|
struct EZeffectTransform {
|
|
/* 0000 */ float x;
|
|
/* 0004 */ float y;
|
|
/* 0008 */ float u;
|
|
/* 000C */ float v;
|
|
/* 0010 */ float us;
|
|
/* 0014 */ float vs;
|
|
/* 0018 */ float u2;
|
|
/* 001C */ float v2;
|
|
/* 0020 */ float us2;
|
|
/* 0024 */ float vs2;
|
|
/* 0028 */ float ax[4];
|
|
/* 0038 */ float ay[4];
|
|
/* 0048 */ float aniframe;
|
|
/* 004C */ std::uint32_t anitype;
|
|
/* 0050 */ float anidelta;
|
|
/* 0054 */ float rz;
|
|
/* 0058 */ float crR;
|
|
/* 005C */ float crG;
|
|
/* 0060 */ float crB;
|
|
/* 0064 */ float crA;
|
|
/* 0068 */ std::uint32_t srcalpha;
|
|
/* 006C */ std::uint32_t destalpha;
|
|
/* 0070 */ std::uint32_t mtpreset;
|
|
};
|
|
|
|
struct EZeffectKeyFrame {
|
|
/* 0000 */ int frame;
|
|
/* 0004 */ std::uint32_t type;
|
|
/* 0008 */ EZeffectTransform transform;
|
|
};
|
|
|
|
struct EZeffectClip {
|
|
EZeffectClip();
|
|
~EZeffectClip();
|
|
CTexture* Texture(int index);
|
|
CTexture* Texture(int index, const char* prefix);
|
|
|
|
/* 0000 */ int textureCount;
|
|
/* 0004 */ int unknown_0004;
|
|
/* 0008 */ int frameCount;
|
|
/* 000C */ const EZeffectKeyFrame* frames;
|
|
/* 0010 */ const char* names[110];
|
|
/* 01C8 */ CTexture* textures[110];
|
|
};
|
|
|
|
class CEZeffectRes : public CRes {
|
|
public:
|
|
CEZeffectRes();
|
|
CEZeffectRes(const char* extension, const char* prefix);
|
|
~CEZeffectRes() override;
|
|
CEZeffectRes* Create() override;
|
|
bool Load(const char* name) override;
|
|
void Unload() override;
|
|
|
|
/* 0110 */ int maximumFrame;
|
|
/* 0114 */ int fps;
|
|
/* 0118 */ int clipCount;
|
|
/* 011C */ int unknown_011C;
|
|
/* 0120 */ EZeffectClip clips[60];
|
|
|
|
private:
|
|
/* D320 */ std::uint32_t unknown_D320;
|
|
/* D324 */ CFile m_file;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(EZeffectTransform) == 116);
|
|
static_assert(sizeof(EZeffectKeyFrame) == 124);
|
|
static_assert(sizeof(EZeffectClip) == 896);
|
|
static_assert(offsetof(EZeffectClip, names) == 0x10);
|
|
static_assert(offsetof(EZeffectClip, textures) == 0x1C8);
|
|
static_assert(sizeof(CEZeffectRes) == 0xD350);
|
|
#endif
|
|
|
|
#endif
|