rodecomp/Source/Contents/Hotkeys/UserHotkeyScript.h

34 lines
865 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_HOTKEYS_USERHOTKEYSCRIPT_H
#define RAGNAROK_SOURCE_CONTENTS_HOTKEYS_USERHOTKEYSCRIPT_H
#include "Script/LuaScript.h"
#include <json/value.h>
#include <string>
void ClearUserHotkeys();
void SaveUserHotkeys();
void ChangeUserHotkey(int tab, int index, int key1, int key2, const std::string& description);
void LoadUserHotkeyTab(Json::Value& values, int tab);
// INLINED
inline void ClearUserHotkeys(LuaScript&) {
ClearUserHotkeys();
}
// INLINED
inline void SaveUserHotkeys(LuaScript&) {
SaveUserHotkeys();
}
// INLINED
inline void ChangeUserHotkey(LuaScript&, int tab, int index, int key1, int key2, const std::string& description) {
ChangeUserHotkey(tab, index, key1, key2, description);
}
// INLINED
inline void LoadUserHotkeyTab(LuaScript&, Json::Value& values, int tab) {
LoadUserHotkeyTab(values, tab);
}
#endif