PSO2SERVER/Server/Protocol/Handlers/11-ClientHandler/11-02-CharacterListRequest.cs

24 lines
702 B
C#

using PSO2SERVER.Database;
using PSO2SERVER.Protocol.Packets;
using System.IO;
using System.Linq;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x02)]
public class CharacterListRequest : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{
if (context._account == null)
return;
//context.SendPacket(File.ReadAllBytes("packets/0000_07_45_49_217936300.bin"));
context.SendPacket(new CharacterListPacket(context._account.AccountId));
}
#endregion
}
}