mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 04:37:47 +00:00
21 lines
629 B
C#
21 lines
629 B
C#
using FFXIVClassic_Lobby_Server.packets;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send
|
|
{
|
|
class SetMusicPacket
|
|
{
|
|
public const ushort OPCODE = 0x000C;
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, ushort musicID, ushort musicTrackMode)
|
|
{
|
|
ulong combined = (ulong)(musicID | (musicTrackMode << 16));
|
|
return new SubPacket(OPCODE, 0, playerActorID, BitConverter.GetBytes(combined));
|
|
}
|
|
}
|
|
}
|