Core/Texts: Refactor Emote/Sound handling and add ConditionID for ChatTextBuilders

Port From (https://github.com/TrinityCore/TrinityCore/commit/caccb06190376d6812e40da36b27e22df8d7f546)
This commit is contained in:
Hondacrx
2024-11-11 10:31:00 -05:00
parent 20a8e1f31b
commit 40ec7e2999
3 changed files with 126 additions and 209 deletions
@@ -883,6 +883,15 @@ namespace Game.Networking.Packets
{
public PlayObjectSound() : base(ServerOpcodes.PlayObjectSound) { }
public PlayObjectSound(ObjectGuid targetObjectGUID, ObjectGuid sourceObjectGUID, uint soundKitID, Vector3 position, int broadcastTextID) : base(ServerOpcodes.PlayObjectSound)
{
TargetObjectGUID = targetObjectGUID;
SourceObjectGUID = sourceObjectGUID;
SoundKitID = soundKitID;
Position = position;
BroadcastTextID = broadcastTextID;
}
public override void Write()
{
_worldPacket.WriteUInt32(SoundKitID);