PSO2SERVER/Server/Protocol/Packets/06-PlayerStatusPacket/06-00-SetPlayerIDPacket.cs

34 lines
756 B
C#
Raw Normal View History

using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
{
public class SetPlayerIDPacket : Packet
{
2024-09-18 01:13:01 +08:00
private readonly int _PlayerId;
2024-09-18 01:13:01 +08:00
public SetPlayerIDPacket(int PlayerId)
{
_PlayerId = PlayerId;
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
2024-09-20 23:11:17 +08:00
pkt.WriteAccountHeader((uint)_PlayerId);
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x06, 0x00, PacketFlags.None);
}
#endregion
}
}