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);
        }
예제 #3
0
 protected virtual T?Process(PacketBase basePacket, PacketPlayMusic packet) => default;
예제 #4
0
 protected override UniversalGuid?Process(PacketBase basePacket, PacketPlayMusic packet)
 {
     return(packet.Target);
 }