Batch #18338 by ragnarok-clanker: no function's compiled code changes; checked with 433 compiled unit(s), including every includer of Source/Client/Application/ApplicationWindow.h, Source/Client/Mode/CGameMode.h, Source/Client/Session/Session.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Map/MapSkyMgr.h, Source/Contents/Messenger/ClientMessenger.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Sound/SoundConfiguration.h, Source/Render/DX7/RenderSystemDX7.h, Source/Render/Device/DisplayMode.h, Source/Resource/Json/JsonCppLoader.h, Source/Security/NProtectGameGuardMgr.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Text/TextWrapping.h, Source/Contents/Actors/Resources/BodyResources.h, Source/Resource/Json/JsonCppLoaderExternal.h, Source/Resource/Json/JsonCppLoaderParsing.h, Source/Security/NProtectGameMon.h.
35 lines
934 B
C++
35 lines
934 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_CONFIGURATION_SERVICEOPTIONS_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_CONFIGURATION_SERVICEOPTIONS_H
|
|
|
|
#include "Contents/Skills/PlayerSkillBundle.h"
|
|
#include "Utility/Singleton.h"
|
|
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <windows.h>
|
|
|
|
enum ServiceOption : int { ConfineCursor = 271 };
|
|
|
|
class CGameSettingsMgr;
|
|
|
|
bool IsServiceOption(int id);
|
|
std::pair<int, unsigned char> FindServiceOption(const char* name);
|
|
int SetOption(const char* name, unsigned char value);
|
|
|
|
struct ServiceOptions {
|
|
/* 0000 */ std::unordered_map<int, unsigned char> values;
|
|
|
|
static unsigned char Get(int id);
|
|
static bool Set(int id, unsigned char value);
|
|
};
|
|
|
|
extern ServiceOptions g_serviceOptions;
|
|
extern float g_serviceOptionJitterScale;
|
|
extern bool g_showBattleFieldIcon;
|
|
extern const GUID g_defaultDrawGuidDX7;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ServiceOptions) == 0x20);
|
|
#endif
|
|
|
|
#endif
|