Batch #13186 by ragnarok-clanker: forced by an admin (40 lower score(s), 206 changed function(s)); checked with 620 compiled unit(s), including every includer of Source/Archive/GPak.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Session.h, Source/Client/Stove/StoveMgr.h, Source/Client/Stove/StovePCSDK.h, Source/Client/Timer.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/RenderObject.h, Source/Contents/CashEmotionMgr.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Skills/SkillTreeScript.h, Source/Render/DX9/D3DX9Runtime.h, Source/Resource/GifResource.h, Source/UI/AdventureGuide/UIAdventureGuide.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Edit/UIEditBoxEx.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UITextViewerControl.h, Source/UI/UIBroadcastBalloon.h, Source/UI/UICaptchaRegisterWnd.h, Source/UI/UIMacroDetectorWnd.h, Source/UI/UIReputeWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UISecondCostumeWnd.h, Source/UI/Window/UISelCharForUServerWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/EncryptedName.h.
36 lines
968 B
C++
36 lines
968 B
C++
#ifndef RAGNAROK_SOURCE_RESOURCE_GIFRESOURCE_H
|
|
#define RAGNAROK_SOURCE_RESOURCE_GIFRESOURCE_H
|
|
|
|
#include "Resource/Bitmap/BitmapResource.h"
|
|
|
|
#include <cstdint>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <windows.h>
|
|
|
|
class CGifRes : public CBitmapRes {
|
|
public:
|
|
using Frame = std::pair<std::uint16_t, std::uint32_t*>;
|
|
|
|
CGifRes();
|
|
~CGifRes() override;
|
|
void Slot02() override;
|
|
bool IsTransient() override;
|
|
CGifRes* Create() override;
|
|
bool Load(const char* name) override;
|
|
void Unload() override;
|
|
bool Decode(const char* name, const void* data, int bytes, bool iconOnly) override;
|
|
|
|
void CreateBlank(int width, int height);
|
|
bool DecodeGif(const void* data, int bytes, bool iconOnly);
|
|
|
|
/* 0124 */ std::vector<Frame> frames;
|
|
/* 0130 */ std::uint16_t loopCount;
|
|
/* 0132 */ std::uint16_t unknown_0132;
|
|
/* 0134 */ std::uint16_t currentFrame;
|
|
/* 0138 */ DWORD lastFrameTime;
|
|
/* 013C */ bool animated;
|
|
/* 013D */ bool frameChanged;
|
|
};
|
|
|
|
#endif
|