Core/Chat: Update ChatNotify enum

Port From (https://github.com/TrinityCore/TrinityCore/commit/c6fd88bf3044de44ac01fe9583a3be4142d1e1d9)
This commit is contained in:
Hondacrx
2024-11-10 22:43:23 -05:00
parent 10574a5129
commit b2edaa6051
2 changed files with 9 additions and 6 deletions
@@ -677,19 +677,21 @@ namespace Game.Chat
struct VoiceOnAppend : IChannelAppender
{
public VoiceOnAppend(ObjectGuid guid)
ChatNotify notificationType;
ObjectGuid _guid;
public VoiceOnAppend(ObjectGuid guid, bool announce = true)
{
_guid = guid;
notificationType = announce ? ChatNotify.VoiceOnNotice : ChatNotify.VoiceOnNoAnnounceNotice;
}
public ChatNotify GetNotificationType() => ChatNotify.VoiceOnNotice;
public ChatNotify GetNotificationType() => notificationType;
public void Append(ChannelNotify data)
{
data.SenderGuid = _guid;
}
ObjectGuid _guid;
}
struct VoiceOffAppend : IChannelAppender