diff --git a/server/gameserver/mt/InGameVoice.cc b/server/gameserver/mt/InGameVoice.cc index 32ccc564..2d4a8cae 100644 --- a/server/gameserver/mt/InGameVoice.cc +++ b/server/gameserver/mt/InGameVoice.cc @@ -71,9 +71,12 @@ namespace mt return _notify_object; } - void InGameVoice::Traverse(std::function cb) + void InGameVoice::Traverse(int event_type, std::function cb) { + auto itr = s_type_hash_.find(event_type); + if (itr != s_type_hash_.end()) { + } } } diff --git a/server/gameserver/mt/InGameVoice.h b/server/gameserver/mt/InGameVoice.h index bfead452..60f7bd8e 100644 --- a/server/gameserver/mt/InGameVoice.h +++ b/server/gameserver/mt/InGameVoice.h @@ -44,7 +44,7 @@ namespace mt void Init2(); InGameVoiceNotifyObject_e GetNotifyObject() const; - static void Traverse(std::function cb); + static void Traverse(int event_type, std::function cb); private: InGameVoiceNotifyObject_e _notify_object;