This commit is contained in:
aozhiwei 2024-03-29 16:24:05 +08:00
parent b554d706c9
commit 555d58716b

View File

@ -7,6 +7,7 @@
IMPL_TABLE(mt::InGameVoice)
int mt::InGameVoice::play_interval = 0;
int mt::InGameVoice::series_kill_interval = 0;
std::map<int, std::vector<const mt::InGameVoice*>> mt::InGameVoice::type_hash_;
namespace mt
{
@ -44,6 +45,14 @@ namespace mt
A8_ABORT();
}
_notify_object = ParseNotifyObject(notify_object());
{
auto itr = type_hash_.find(event_type());
if (itr != type_hash_.end()) {
itr->second.push_back(this);
} else {
type_hash_[event_type()] = std::vector<const mt::InGameVoice*>({this});
}
}
}
void InGameVoice::Init2()