PSO2SERVER/Server/Protocol/Packets/11-ClientPacket/11-53-CreateCharacterInviteNicknameResponsePacket.cs

52 lines
1.2 KiB
C#
Raw Normal View History

2024-09-18 01:50:29 +08:00
using PSO2SERVER.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PSO2SERVER.Protocol.Packets
2024-09-18 01:50:29 +08:00
{
2024-12-05 23:13:55 +08:00
public class CreateCharacterInviteNicknameResponsePacket : Packet
2024-09-18 01:50:29 +08:00
{
2024-12-05 23:13:55 +08:00
/// <summary>
/// Creation status.
/// </summary>
public uint Status;
public uint Unk2;
public uint UsedSmth;
/// <summary>
/// Required AC to buy a character creation pass.
/// </summary>
public uint ReqAc;
2024-09-18 01:50:29 +08:00
2024-12-05 23:13:55 +08:00
public CreateCharacterInviteNicknameResponsePacket(uint status, uint unk2, uint usedSmth, uint reqAc)
2024-09-18 01:50:29 +08:00
{
2024-12-05 23:13:55 +08:00
Status = status;
Unk2 = unk2;
UsedSmth = usedSmth;
ReqAc = reqAc;
2024-09-18 01:50:29 +08:00
}
#region implemented abstract members of Packet
public override byte[] Build()
{
var pkt = new PacketWriter();
2024-12-05 23:13:55 +08:00
pkt.Write(Status);
pkt.Write(Unk2);
pkt.Write(UsedSmth);
pkt.Write(ReqAc);
2024-09-18 01:50:29 +08:00
return pkt.ToArray();
}
public override PacketHeader GetHeader()
{
return new PacketHeader(0x11, 0x53, PacketFlags.None);
2024-09-18 01:50:29 +08:00
}
#endregion
}
}