rodecomp/Source/Contents/Hotkeys/HotkeyInfo.h
ragnarok-clanker af1feeeb12 Decompile 2 functions in Source/Contents/Hotkeys/HotkeyInfo.cpp, Source/Contents/Hotkeys/HotkeyInfo.h
Batch #11730 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_10278 SkillTooltipPercent: byte-identical
- fn_10279 SkillTooltipFlat: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-05 04:32:23 +00:00

34 lines
1 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#define RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#include "Utility/Text/FormatString.h"
#include <cstddef>
#include <string>
class LuaScript;
struct HotkeyInfo {
/* 0000 */ int key1;
/* 0004 */ int key2;
/* 0008 */ std::string text;
/* 0020 */ std::string description;
HotkeyInfo();
HotkeyInfo(const HotkeyInfo& other);
~HotkeyInfo();
};
HotkeyInfo GetHotkeyInfo(LuaScript& script, int tab, int index);
int HotkeyCount(LuaScript& script, int tab);
std::string SkillTooltipPercent(const char* hotkey, const char* name, int level, int sp, int ap);
std::string SkillTooltipFlat(const char* hotkey, const char* name, int level, int sp, int ap);
std::string SkillTooltip(const char* hotkey, const char* name, int level, int sp, int ap, bool percent);
bool SkillUsesPercentSp(int id);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(HotkeyInfo) == 56);
static_assert(offsetof(HotkeyInfo, text) == 8);
static_assert(offsetof(HotkeyInfo, description) == 0x0020);
#endif
#endif