Batch #8976 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_23797 HotkeyCount: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
32 lines
1,022 B
C++
32 lines
1,022 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_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
|