using PSO2SERVER.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PSO2SERVER.Protocol.Packets { public class AccountFlagsPacket : Packet { // Accounts flags (0x400 bytes) public FixedList Flags { get; set; } = new FixedList(0x400, 0); // Accounts parameters (0x100 bytes) public FixedList Params { get; set; } = new FixedList(0x100, 0); public AccountFlagsPacket() { } public AccountFlagsPacket(FixedList Flags, FixedList Params) { this.Flags = Flags; this.Params = Params; } #region implemented abstract members of Packet public override byte[] Build() { var pkt = new PacketWriter(); pkt.WriteList(Flags); pkt.WriteList(Params); return pkt.ToArray(); } public override PacketHeader GetHeader() { return new PacketHeader(0x23, 0x06, PacketFlags.None); } #endregion } }