This commit is contained in:
aozhiwei 2022-12-24 14:00:47 +08:00
parent 0ec3f70199
commit db4f0e676a
2 changed files with 39 additions and 40 deletions

View File

@ -8,17 +8,8 @@
#include "cs_proto.pb.h"
struct RollMsgHintInfo
bool RollMsgHintInfo::Replace(int idx, std::string& text)
{
std::string master_name;
std::string killer_name;
std::string dead_name;
std::string weapon_text_icon;
std::vector<std::tuple<int, std::string>>* hint_template = nullptr;
bool Replace(int idx, std::string& text)
{
switch (idx) {
case kFieldIdxMasterName:
{
@ -47,9 +38,7 @@ struct RollMsgHintInfo
break;
}
return true;
}
};
}
void KillMgr::Init()
{

View File

@ -17,8 +17,18 @@ struct KillInfo
std::string real_killer_name;
};
struct RollMsgHintInfo
{
std::string master_name;
std::string killer_name;
std::string dead_name;
std::string weapon_text_icon;
std::vector<std::tuple<int, std::string>>* hint_template = nullptr;
bool Replace(int idx, std::string& text);
};
class Human;
struct RollMsgHintInfo;
class KillMgr : public a8::Singleton<KillMgr>
{