This commit is contained in:
aozhiwei 2024-08-02 10:51:34 +08:00
parent a9c206ed29
commit 6acf456b7a
4 changed files with 8 additions and 0 deletions

View File

@ -627,6 +627,7 @@ void FrameMaker::SerializeVoices(cs::SMUpdate* msg, Room* room, Human* hum, Fram
p->mutable_kill_info()->set_killer_uniid(hum->GetUniId()); p->mutable_kill_info()->set_killer_uniid(hum->GetUniId());
p->mutable_kill_info()->set_killer_name(hum->GetName()); p->mutable_kill_info()->set_killer_name(hum->GetName());
p->mutable_kill_info()->set_killer_hero_id(hum->GetHeroMeta()->id()); p->mutable_kill_info()->set_killer_hero_id(hum->GetHeroMeta()->id());
p->mutable_kill_info()->set_killer_skin_id(hum->GetNetData()->GetSkinId());
} }
} }
if (v->dead_id) { if (v->dead_id) {
@ -635,6 +636,7 @@ void FrameMaker::SerializeVoices(cs::SMUpdate* msg, Room* room, Human* hum, Fram
p->mutable_kill_info()->set_dead_uniid(hum->GetUniId()); p->mutable_kill_info()->set_dead_uniid(hum->GetUniId());
p->mutable_kill_info()->set_dead_name(hum->GetName()); p->mutable_kill_info()->set_dead_name(hum->GetName());
p->mutable_kill_info()->set_dead_hero_id(hum->GetHeroMeta()->id()); p->mutable_kill_info()->set_dead_hero_id(hum->GetHeroMeta()->id());
p->mutable_skin_id()->set_dead_hero_id(hum->GetNetData()->GetSkinId());
} }
} }
#ifdef MYDEBUG #ifdef MYDEBUG

View File

@ -974,6 +974,7 @@ void Human::FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_o
team_data->set_hero_max_exp(GetHeroMaxExp()); team_data->set_hero_max_exp(GetHeroMaxExp());
team_data->set_score(stats->pve_rank_score); team_data->set_score(stats->pve_rank_score);
team_data->set_main_skill_cd(GetMainSkill()->GetLeftTime()); team_data->set_main_skill_cd(GetMainSkill()->GetLeftTime());
team_data->set_skin_id(GetNetData()->GetSkinId());
if (is_game_over || !real_dead || room->GetFrameNo() - GetRealDeadFrameNo(room) < 4) { if (is_game_over || !real_dead || room->GetFrameNo() - GetRealDeadFrameNo(room) < 4) {
TypeConvert::ToPb(GetPos(), team_data->mutable_pos()); TypeConvert::ToPb(GetPos(), team_data->mutable_pos());
TypeConvert::ToPb(GetAttackDir(), team_data->mutable_dir()); TypeConvert::ToPb(GetAttackDir(), team_data->mutable_dir());

View File

@ -1839,6 +1839,7 @@ void Player::_CMGetSettlementTeamList(f8::MsgHdr* hdr, const cs::CMGetSettlement
m->set_account_id(hum->account_id); m->set_account_id(hum->account_id);
m->set_name(hum->name); m->set_name(hum->name);
m->set_hero_id(hum->meta->id()); m->set_hero_id(hum->meta->id());
m->set_skin_id(hum->GetNetData()->GetSkinId());
return true; return true;
}); });
++team_rank; ++team_rank;

View File

@ -344,6 +344,7 @@ message MFSettlementMember2
optional string account_id = 2; //id optional string account_id = 2; //id
optional string name = 3; // optional string name = 3; //
optional int32 hero_id = 4 [default = 0]; //id optional int32 hero_id = 4 [default = 0]; //id
optional int32 skin_id = 5 [default = 0]; //id
} }
//- //-
@ -729,6 +730,7 @@ message MFTeamData
optional int32 hero_exp = 73; //hero经验 optional int32 hero_exp = 73; //hero经验
optional int32 hero_max_exp = 74; //hero max经验 optional int32 hero_max_exp = 74; //hero max经验
optional int32 main_skill_cd = 80 [default = 0]; //cd时间 optional int32 main_skill_cd = 80 [default = 0]; //cd时间
optional int32 skin_id = 81 [default = 0]; //id()
// //
optional string account_id = 10; //id optional string account_id = 10; //id
@ -1558,10 +1560,12 @@ message MFInGameVoiceKillInfo
optional int32 killer_uniid = 1; //uniid optional int32 killer_uniid = 1; //uniid
optional string killer_name = 2; // optional string killer_name = 2; //
optional int32 killer_hero_id = 3; //hero_id optional int32 killer_hero_id = 3; //hero_id
optional int32 killer_skin_id = 4; //
optional int32 dead_uniid = 11; //uniid optional int32 dead_uniid = 11; //uniid
optional string dead_name = 12; // optional string dead_name = 12; //
optional int32 dead_hero_id = 13; //hero_id optional int32 dead_hero_id = 13; //hero_id
optional int32 dead_skin_id = 14; //
} }
// //