rodecomp/Source/Contents/Configuration/ServiceOptions.h
ragnarok-clanker 8db9eacff4 Decompile fn_21321 (CPingLiveSchedule::Process)
Batch #8156 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_21321 CPingLiveSchedule::Process: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, secret
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 14:35:16 +00:00

32 lines
853 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<std::uint32_t, unsigned char, SkillIdHash> values;
unsigned char Get(int id) const;
bool Set(int id, unsigned char value);
};
extern ServiceOptions g_serviceOptions;
extern float g_serviceOptionJitterScale;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(ServiceOptions) == 0x20);
#endif
#endif