1
This commit is contained in:
parent
e960171497
commit
d38664cd4d
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user