Batch #4287 by eAthena: 0 byte-identical, 14 confirmed by peer review. - fn_05349 CCheckAttendanceMgr::Create: logic confirmed by peer review - fn_05350 CCheckAttendanceMgr::Destroy: logic confirmed by peer review - fn_05351 CCheckAttendanceMgr::GetReward: logic confirmed by peer review - fn_05352 CCheckAttendanceMgr::Load: logic confirmed by peer review - fn_05355 CCheckAttendanceMgr::L_InsertCheckAttendanceConfig: logic confirmed by peer review - fn_05356 CCheckAttendanceMgr::L_InsertCheckAttendanceReward: logic confirmed by peer review - fn_05367 CPetEvolutionMgr::Create: logic confirmed by peer review - fn_05368 CPetEvolutionMgr::Destroy: logic confirmed by peer review - fn_05369 CPetEvolutionMgr::GetEvolutionTargets: logic confirmed by peer review - fn_05370 CPetEvolutionMgr::GetMaterials: logic confirmed by peer review - fn_05371 CPetEvolutionMgr::Load: logic confirmed by peer review - fn_05372 CPetEvolutionMgr::InsertPetAutoFeeding: logic confirmed by peer review - fn_05373 CPetEvolutionMgr::InsertRecipe: logic confirmed by peer review - fn_05374 CPetEvolutionMgr::IsAutoFeeding: logic confirmed by peer review Peer-reviewed-by: willerthal, superintelligence 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/CheckAttendanceMgr.cpp, Source/Contents/PetEvolutionMgr.cpp
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_CHECKATTENDANCEMGR_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_CHECKATTENDANCEMGR_H
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <utility>
|
|
|
|
struct lua_State;
|
|
|
|
// VTABLE: vt_00354
|
|
class CCheckAttendanceMgr {
|
|
public:
|
|
// VTABLE: vt_00353
|
|
class lcReward {
|
|
public:
|
|
// INLINED
|
|
lcReward(int item, int count) : m_item(item), m_count(count) {
|
|
}
|
|
// INLINED
|
|
virtual ~lcReward() {
|
|
}
|
|
|
|
/* 0004 */ int m_item;
|
|
/* 0008 */ int m_count;
|
|
};
|
|
|
|
// INLINED
|
|
CCheckAttendanceMgr() : m_isValid(true), m_config0(0), m_config1(0) {
|
|
}
|
|
// INLINED
|
|
virtual ~CCheckAttendanceMgr() {
|
|
}
|
|
|
|
static bool Create();
|
|
static void Destroy();
|
|
static int L_InsertCheckAttendanceConfig(lua_State* state);
|
|
static int L_InsertCheckAttendanceReward(lua_State* state);
|
|
|
|
std::pair<int, int> GetReward(int day);
|
|
bool Load();
|
|
bool LoadLocal(std::string suffix);
|
|
|
|
/* 0004 */ bool m_isValid;
|
|
/* 0008 */ int m_config0;
|
|
/* 000C */ int m_config1;
|
|
/* 0010 */ std::map<int, lcReward> m_rewards;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CCheckAttendanceMgr) == 0x18);
|
|
#endif
|
|
|
|
extern CCheckAttendanceMgr* g_checkAttendanceMgr;
|
|
|
|
#endif
|