rodecomp/Source/Contents/Skills/AutomaticSkills.h
ragnarok-clanker e24228eaec Confirm fn_21406 (AutomaticSkills::Complete)
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).
2026-11-05 04:00:47 +00:00

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