mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-12 14:34:39 +01:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using BLHX.Server.Common.Proto;
|
|
using BLHX.Server.Common.Proto.p50;
|
|
|
|
namespace BLHX.Server.Game.Handlers
|
|
{
|
|
internal static class P50
|
|
{
|
|
[PacketHandler(Command.Cs50014)]
|
|
static void SearchFriendCommandHandler(Connection connection, Packet packet)
|
|
{
|
|
connection.Send(new Sc50015());
|
|
}
|
|
|
|
[PacketHandler(Command.Cs50016)]
|
|
static void GetBlacklistHandler(Connection connection, Packet packet)
|
|
{
|
|
connection.Send(new Sc50017());
|
|
}
|
|
|
|
[PacketHandler(Command.Cs50102, IsNotifyHandler = true)]
|
|
static void SendMsgHandler(Connection connection, Packet packet)
|
|
{
|
|
var req = packet.Decode<Cs50102>();
|
|
|
|
GameServer.ChatManager.SendChat(new()
|
|
{
|
|
Content = req.Content,
|
|
Player = new()
|
|
{
|
|
Id = connection.player.Uid,
|
|
Lv = connection.player.Level,
|
|
Name = connection.player.Name,
|
|
Display = connection.player.DisplayInfo
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|