PSO2SERVER/Server/Packets/PSOPackets/PalettePacket.cs

30 lines
652 B
C#
Raw Normal View History

2024-09-10 01:13:20 +08:00
using PSO2SERVER.Models;
2024-09-10 00:31:40 +08:00
2024-09-10 01:13:20 +08:00
namespace PSO2SERVER.Packets.PSOPackets
2024-09-10 00:31:40 +08:00
{
public class PalettePacket : Packet
{
#region implemented abstract members of Packet
public override byte[] Build()
{
var writer = new PacketWriter();
// Enable flag
writer.Write((byte) 1);
// Blank out the rest (skills)
for (var i = 0; i < 1091; i++)
writer.Write((byte) 0);
return writer.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x21, 0x01);
}
#endregion
}
}