This commit is contained in:
aozhiwei 2024-04-01 10:37:43 +08:00
parent e960171497
commit d38664cd4d
2 changed files with 26 additions and 1 deletions

View File

@ -94,6 +94,32 @@ void InGameVoice::OnHumanBeKill(int killer_id, Human* deader)
void InGameVoice::Notify(Human* killer, Human* deader, const mt::InGameVoice* meta)
{
{
switch (meta->play_scene()) {
case 1:
{
if (!room_->IsMobaModeRoom()) {
return;
}
}
break;
case 2:
{
if (room_->IsMobaModeRoom()) {
return;
}
}
break;
case 3:
{
}
break;
default:
{
}
break;
}
}
auto p = std::make_shared<FightVoice>();
{
p->voice_id = meta->sound_id();

View File

@ -61,7 +61,6 @@ message MobaRoom
message InGameVoice
{
optional int32 event_type = 1;
optional int32 moba_is_play = 2;
optional int32 sound_id = 3;
optional string cond = 4;
optional string notify_object = 5;