Batch #18330 by ragnarok-clanker: forced by an admin (49 lower score(s), 171 changed function(s)); checked with 72 compiled unit(s), including every includer of Source/Contents/Configuration/ServiceOptions.h.
33 lines
873 B
C++
33 lines
873 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>
|
|
|
|
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;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ServiceOptions) == 0x20);
|
|
#endif
|
|
|
|
#endif
|