Batch #14947 by ragnarok-clanker: no function's compiled code changes; checked with 596 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Mode/EquipWindowLook.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/GraffiSkill.h, Source/Contents/Actors/GrannyGameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/Camera/Camera.h, Source/Contents/Effects/EffectEmitter.h, Source/Contents/Effects/EffectPrimitiveState.h, Source/Contents/FlyingShipRouteInfo.h, Source/Contents/Ground/GroundGeometry.h, Source/Contents/Ground/GroundSpatial.h, Source/Contents/Items/ItemInfo.h, Source/Render/SpriteQuad.h, Source/Resource/EZeffectResource.h, Source/Resource/Models/AnimatedModelResource.h, Source/Resource/Models/GrannyModelResource.h, Source/Resource/Models/ModelMesh.h, Source/Resource/World/WorldResource.h, Source/UI/Dialogs/UIChooseWnd.h, Source/UI/Items/UISpellListWnd.h, Source/UI/Lists/UIListBoxTemplate.h, Source/UI/MiniPartyGrid.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Text/UIAchWnd.h, Source/UI/Window/UIMonsterInfoWnd.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UINewMakeCharWnd.h, Source/UI/Window/UITalkboxTrapInputWnd.h, Source/UI/Window/UIWindowMgr.h.
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifndef RAGNAROK_SOURCE_UI_MINIPARTYGRID_H
|
|
#define RAGNAROK_SOURCE_UI_MINIPARTYGRID_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
struct MiniPartyGridPoint {
|
|
/* 0000 */ int x;
|
|
/* 0004 */ int y;
|
|
};
|
|
|
|
struct MiniPartyGridRectangle {
|
|
/* 0000 */ int left;
|
|
/* 0004 */ int top;
|
|
/* 0008 */ int right;
|
|
/* 000C */ int bottom;
|
|
};
|
|
|
|
struct MiniPartyGrid {
|
|
MiniPartyGridPoint* GetCellPosition(MiniPartyGridPoint* position, int index) const;
|
|
MiniPartyGridPoint* GetWindowPosition(MiniPartyGridPoint* position, int index) const;
|
|
int FindCell(int x, int y) const;
|
|
void BuildAvailableCells();
|
|
|
|
/* 0000 */ std::uint32_t vtable;
|
|
/* 0004 */ int left;
|
|
/* 0008 */ int top;
|
|
/* 000C */ int right;
|
|
/* 0010 */ int bottom;
|
|
/* 0014 */ int columns;
|
|
/* 0018 */ int rows;
|
|
/* 001C */ std::vector<MiniPartyGridRectangle> exclusions;
|
|
/* 0028 */ std::vector<int> availableCells;
|
|
};
|
|
|
|
extern int g_miniPartyCellWidth;
|
|
extern int g_miniPartyCellHeight;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(MiniPartyGridPoint) == 0x08);
|
|
static_assert(offsetof(MiniPartyGridPoint, y) == 0x04);
|
|
static_assert(sizeof(MiniPartyGridRectangle) == 0x10);
|
|
static_assert(offsetof(MiniPartyGridRectangle, bottom) == 0x0C);
|
|
static_assert(offsetof(MiniPartyGrid, exclusions) == 0x1C);
|
|
static_assert(offsetof(MiniPartyGrid, availableCells) == 0x28);
|
|
static_assert(sizeof(MiniPartyGrid) == 0x34);
|
|
#endif
|
|
|
|
#endif
|