public static void HandlePlayMusic(Packet packet) { PacketPlayMusic packetMusic = packet.Holder.PlayMusic = new PacketPlayMusic(); uint sound = packetMusic.Music = packet.ReadUInt32 <SoundId>("SoundKitID"); Storage.Sounds.Add(sound, packet.TimeSpan); }
public static void HandleMusicMessages(Packet packet) { PacketPlayMusic packetMusic = packet.Holder.PlayMusic = new PacketPlayMusic(); uint sound = packetMusic.Music = packet.ReadUInt32("Sound Id"); if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_3_0_15005)) { packetMusic.Target = packet.ReadGuid("GUID").ToUniversalGuid(); } Storage.Sounds.Add(sound, packet.TimeSpan); }
protected virtual T?Process(PacketBase basePacket, PacketPlayMusic packet) => default;
protected override UniversalGuid?Process(PacketBase basePacket, PacketPlayMusic packet) { return(packet.Target); }