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

24 lines
702 B
C#
Raw Normal View History

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