31 lines
537 B
C++
31 lines
537 B
C++
#pragma once
|
|
|
|
#include "mt/macro.h"
|
|
#include "mtb/Grasp.h"
|
|
#include "mt/GraspBuff.h"
|
|
|
|
namespace mt
|
|
{
|
|
|
|
DECLARE_ID_TABLE(Grasp, mtb::Grasp,
|
|
"grasp@grasp.json",
|
|
"grasp_id")
|
|
public:
|
|
|
|
void Init1();
|
|
void Init2();
|
|
void StaticPreInit();
|
|
|
|
|
|
std::set<int>* GetBuffs(int hero_id, int hero_lv);
|
|
|
|
private:
|
|
static std::map<long long, std::set<int>> hero_id_lv_hash_;
|
|
|
|
std::set<int> _add_buff_list;
|
|
std::set<int> _remove_buff_list;
|
|
|
|
};
|
|
|
|
}
|