mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 22:24:34 +01:00
23 lines
781 B
C#
23 lines
781 B
C#
using Common.Resources.Proto;
|
|
|
|
namespace PemukulPaku.GameServer.Handlers
|
|
{
|
|
[PacketCmdId(CmdId.SetSelfDescReq)]
|
|
internal class SetSelfDescReqHandler : IPacketHandler
|
|
{
|
|
public void Handle(Session session, Packet packet)
|
|
{
|
|
SetSelfDescReq Data = packet.GetDecodedBody<SetSelfDescReq>();
|
|
session.Player.User.SelfDesc = Data.SelfDesc;
|
|
GetMainDataRsp mainDataRsp = new()
|
|
{
|
|
retcode = GetMainDataRsp.Retcode.Succ,
|
|
SelfDesc = Data.SelfDesc
|
|
};
|
|
SetSelfDescRsp Rsp = new() { retcode = SetSelfDescRsp.Retcode.Succ };
|
|
|
|
session.Send(Packet.FromProto(mainDataRsp, CmdId.GetMainDataRsp), Packet.FromProto(Rsp, CmdId.SetSelfDescRsp));
|
|
}
|
|
}
|
|
}
|