Batch #1065 by ragnarok-clanker: no function's compiled code changes; checked with 92 compiled unit(s), including every includer of Source/UI/Buttons/UIBmpTextButton.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Cooldowns/CooldownDrawing.h, Source/UI/Cooldowns/CooldownState.h, Source/UI/Edit/ItemTagRetirement.h, Source/UI/Layout/SnapRectangle.h, Source/UI/Lists/UIListBoxEx.h, Source/UI/MiniPartyGrid.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shop/PriceColor.h, Source/UI/Shortcuts/ShortcutCooldowns.h, Source/UI/Shortcuts/ShortcutGrid.h, Source/UI/Text/TextMarkup.h, Source/UI/Text/UITransBalloonText.h, Source/UI/Window/FrameTextCache.h, Source/UI/Window/UIWindow.h, Source/UI/Window/WindowAncestry.h, Source/UI/Window/WindowRegistration.h.
31 lines
958 B
C++
31 lines
958 B
C++
#ifndef RAGNAROK_SOURCE_UI_WINDOW_FRAMETEXTCACHE_H
|
|
#define RAGNAROK_SOURCE_UI_WINDOW_FRAMETEXTCACHE_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
struct FrameTextKey {
|
|
/* 0000 */ std::uint32_t word0;
|
|
/* 0004 */ std::uint32_t word1;
|
|
/* 0008 */ std::string text;
|
|
bool operator==(const FrameTextKey& other) const;
|
|
};
|
|
struct FrameTextHash {
|
|
std::size_t operator()(const FrameTextKey& key) const;
|
|
};
|
|
using FrameTextLines = std::vector<std::vector<std::pair<int, std::string>>>;
|
|
using FrameTextCache = std::unordered_map<FrameTextKey, FrameTextLines, FrameTextHash>;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(FrameTextKey) == 32);
|
|
static_assert(offsetof(FrameTextKey, word0) == 0x0000);
|
|
static_assert(offsetof(FrameTextKey, word1) == 0x0004);
|
|
static_assert(offsetof(FrameTextKey, text) == 0x0008);
|
|
static_assert(sizeof(FrameTextCache) == 32);
|
|
#endif
|
|
|
|
#endif
|