Batch #5979 by Yommy: 0 byte-identical, 16 confirmed by peer review. - fn_10556 UIBarterItemPurchaseWnd::Slot25: logic confirmed by peer review - fn_10557 UIBartermarketWnd::Slot25: logic confirmed by peer review - fn_10558 UIBarterItemPurchaseWnd::Slot28: logic confirmed by peer review - fn_10561 UIBarterItemPurchaseWnd::Slot32: logic confirmed by peer review - fn_10562 UIBartermarketWnd::Slot32: logic confirmed by peer review - fn_10587 UIExpandedBarterItemPurchaseWnd::Slot25: logic confirmed by peer review - fn_10588 UIExpandedBartermarketWnd::Slot25: logic confirmed by peer review - fn_10589 UIExpandedBarterItemPurchaseWnd::Slot28: logic confirmed by peer review - fn_10591 UIExpandedBartermarketWnd::Slot28: logic confirmed by peer review - fn_10592 UIExpandedBarterItemPurchaseWnd::Slot32: logic confirmed by peer review - fn_10593 UIExpandedBartermarketWnd::Slot32: logic confirmed by peer review - fn_18076 BarterMarketItem::ToItemInfo: logic confirmed by peer review - fn_18077 BarterMarketEntry::ToItemInfo: logic confirmed by peer review - fn_21427 ModeDragState::BeginBarterItem: logic confirmed by peer review - fn_21428 ModeDragState::BeginBarterEntry: logic confirmed by peer review - fn_23383 CSession::GetItemNameColor: logic confirmed by peer review Peer-reviewed-by: willerthal, tayoba Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
#ifndef RAGNAROK_SOURCE_CLIENT_MODE_MODEDRAGSTATE_H
|
|
#define RAGNAROK_SOURCE_CLIENT_MODE_MODEDRAGSTATE_H
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
class WindowManagerWindows;
|
|
class ResourceMgr;
|
|
struct ItemDescriptions;
|
|
struct ITEM_INFO;
|
|
struct BarterMarketItem;
|
|
struct BarterMarketEntry;
|
|
|
|
struct ModeDragState {
|
|
/* 0308 */ int source;
|
|
/* 030C */ std::uint32_t id;
|
|
/* 0310 */ std::uint32_t unknown_0310;
|
|
/* 0314 */ std::uint32_t unknown_0314;
|
|
/* 0318 */ int quantity;
|
|
/* 031C */ int slot;
|
|
/* 0320 */ std::uint32_t type;
|
|
/* 0324 */ std::uint32_t refine;
|
|
/* 0328 */ unsigned char identified;
|
|
/* 032C */ std::string resource;
|
|
/* 0344 */ std::string name;
|
|
/* 035C */ std::string skillName;
|
|
/* 0374 */ int skillLevel;
|
|
/* 0378 */ unsigned char cards[16];
|
|
/* 0388 */ unsigned char skill;
|
|
/* 038C */ std::uint32_t unknown_038C;
|
|
/* 0390 */ int optionCount;
|
|
/* 0394 */ unsigned char options[25];
|
|
/* 03B0 */ int unknown_03B0;
|
|
/* 03B4 */ std::uint16_t grade;
|
|
/* 03B6 */ unsigned char unknown_03B6;
|
|
/* 03B8 */ std::uint32_t unknown_03B8;
|
|
/* 03C0 */ std::int64_t unknown_03C0;
|
|
|
|
void Clear();
|
|
void BeginItem(WindowManagerWindows& windows, ItemDescriptions& descriptions, int source, const ITEM_INFO& item, int quantity, int slot);
|
|
void BeginSkill(WindowManagerWindows& windows, ResourceMgr& resources, int source, std::uint32_t id, const char* name, int level, int slot);
|
|
void BeginBarterItem(int source, const BarterMarketItem& item, int quantity, int slot);
|
|
void BeginBarterEntry(int source, const BarterMarketEntry& entry, int quantity, int slot);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ModeDragState) == 192);
|
|
#endif
|
|
|
|
#endif
|