2024-09-18 00:55:35 +08:00
|
|
|
|
using PSO2SERVER.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2024-11-27 18:05:53 +08:00
|
|
|
|
namespace PSO2SERVER.Protocol.Packets
|
2024-09-18 00:55:35 +08:00
|
|
|
|
{
|
|
|
|
|
public class SetPlayerIDPacket : Packet
|
|
|
|
|
{
|
2024-09-18 01:13:01 +08:00
|
|
|
|
private readonly int _PlayerId;
|
2024-09-18 00:55:35 +08:00
|
|
|
|
|
2024-09-18 01:13:01 +08:00
|
|
|
|
public SetPlayerIDPacket(int PlayerId)
|
2024-09-18 00:55:35 +08:00
|
|
|
|
{
|
|
|
|
|
_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);
|
2024-09-18 00:55:35 +08:00
|
|
|
|
return pkt.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override PacketHeader GetHeader()
|
|
|
|
|
{
|
|
|
|
|
return new PacketHeader(0x06, 0x00, PacketFlags.None);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|