Batch #5332 by ragnarok-clanker: 0 byte-identical, 3 confirmed by peer review. - fn_18350 GetCmdOnOffValue: logic confirmed by peer review - fn_18351 SetCmdOnOffList: logic confirmed by peer review - fn_18358 AddIngredient: logic confirmed by peer review Peer-reviewed-by: eAthena, tayoba Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
31 lines
812 B
C++
31 lines
812 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;
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(ServiceOptions) == 0x20);
|
|
#endif
|
|
|
|
#endif
|