mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 22:34:34 +01:00
set dress, set bio & set birthday
This commit is contained in:
22
GameServer/Handlers/SetSelfDescReqHandler.cs
Normal file
22
GameServer/Handlers/SetSelfDescReqHandler.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user