Batch #4699 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_03336 EfstActionRegistrar::EfstActionRegistrar: logic confirmed by peer review - fn_03337 SkillActionRegistrar::SkillActionRegistrar: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Contents/Skills/SkillActionRegistrar.cpp
23 lines
710 B
C++
23 lines
710 B
C++
#include "Contents/Skills/SkillInfo.h"
|
|
|
|
#include <functional>
|
|
|
|
struct EfstActionRegistrar {
|
|
EfstActionRegistrar(int efstId, std::function<CEfstAction*()> factory);
|
|
};
|
|
|
|
struct SkillActionRegistrar {
|
|
SkillActionRegistrar(int skillId, std::function<CSkillAction*()> factory);
|
|
};
|
|
|
|
// OFFSET: 0x005AFB60
|
|
// FUNCTION: fn_03336
|
|
EfstActionRegistrar::EfstActionRegistrar(int efstId, std::function<CEfstAction*()> factory) {
|
|
CSkillActionMgr::GetInstance()->RegisterEfstAction(efstId, factory);
|
|
}
|
|
|
|
// OFFSET: 0x005AFC10
|
|
// FUNCTION: fn_03337
|
|
SkillActionRegistrar::SkillActionRegistrar(int skillId, std::function<CSkillAction*()> factory) {
|
|
CSkillActionMgr::GetInstance()->RegisterSkillAction(skillId, factory);
|
|
}
|