Batch #11637 by StrawberrysherbetIX: 0 byte-identical, 1 confirmed by peer review. - fn_21406 AutomaticSkills::Complete: logic confirmed by peer review (already on main) Peer-reviewed-by: Yommy, dori, cremane Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
27 lines
703 B
C++
27 lines
703 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_SKILLS_AUTOMATICSKILLS_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_SKILLS_AUTOMATICSKILLS_H
|
|
|
|
#include <cstdint>
|
|
#include <set>
|
|
|
|
class AutomaticSkills {
|
|
public:
|
|
AutomaticSkills();
|
|
~AutomaticSkills();
|
|
__declspec(noinline) bool Contains(int id) const;
|
|
static int CancelOption(std::int16_t id);
|
|
void DisableAll();
|
|
void Use(std::int16_t id, std::int16_t level, std::uint32_t target);
|
|
void Complete(int id);
|
|
|
|
private:
|
|
/* 0000 */ std::set<int> m_ids;
|
|
AutomaticSkills(const AutomaticSkills&) = delete;
|
|
AutomaticSkills& operator=(const AutomaticSkills&) = delete;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(AutomaticSkills) == 8);
|
|
#endif
|
|
|
|
#endif
|