Batch #10033 by ragnarok-clanker: forced by an admin (0 lower score(s), 6 changed function(s)); checked with 479 compiled unit(s), including every includer of Source/Client/Application/ApplicationMessages.h, Source/Client/Application/Launcher.h, Source/Client/Mode/CMode.h, Source/Client/ModeFade.h, Source/UI/Window/UIWindowMgr.h.
57 lines
1.6 KiB
C++
57 lines
1.6 KiB
C++
#ifndef RAGNAROK_SOURCE_CLIENT_MODE_CMODE_H
|
|
#define RAGNAROK_SOURCE_CLIENT_MODE_CMODE_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class CTexture;
|
|
class UIWindow;
|
|
struct TextureRegion;
|
|
struct tagRECT;
|
|
|
|
class CMode {
|
|
public:
|
|
/* 0004 */ int cursorType;
|
|
/* 0008 */ std::uint32_t cursorFrame;
|
|
/* 000C */ int pendingCursorType;
|
|
/* 0010 */ int fadeInRequested;
|
|
/* 0014 */ int running;
|
|
/* 0018 */ int unknown_0018;
|
|
/* 001C */ UIWindow* tooltip;
|
|
/* 0020 */ std::uint32_t tooltipTick;
|
|
/* 0024 */ std::uint32_t cursorTick;
|
|
/* 0028 */ int unknown_0028;
|
|
/* 002C */ int screenshotRequested;
|
|
/* 0030 */ float cursorOffsetX;
|
|
/* 0034 */ float cursorOffsetY;
|
|
/* 0038 */ std::string screenshotName;
|
|
/* 0050 */ int cursorAction;
|
|
/* 0054 */ unsigned cursorActionFrame;
|
|
|
|
virtual ~CMode();
|
|
virtual int Run();
|
|
virtual void Initialize(const char* name);
|
|
virtual void End();
|
|
virtual void Update();
|
|
virtual void Slot5(int value);
|
|
virtual int SendMsg(int event, int argument1, int argument2, int argument3, int argument4);
|
|
virtual void Slot7(int value);
|
|
|
|
CMode();
|
|
std::uint32_t ClearTooltip();
|
|
void TakeScreenshot();
|
|
void DrawCursor();
|
|
void DrawFadeIn();
|
|
void DrawTexture(const tagRECT& rect, int angle, float rhw, std::uint32_t color, CTexture* texture, TextureRegion region);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(CMode, cursorType) == 0x4);
|
|
static_assert(offsetof(CMode, tooltip) == 0x1C);
|
|
static_assert(offsetof(CMode, tooltipTick) == 0x20);
|
|
static_assert(offsetof(CMode, screenshotName) == 0x38);
|
|
static_assert(sizeof(CMode) == 0x58);
|
|
#endif
|
|
|
|
#endif
|