set dress, set bio & set birthday

This commit is contained in:
rafi1212122
2023-06-05 12:12:00 +07:00
parent 934e7475d7
commit f822976f74
4 changed files with 80 additions and 0 deletions

View 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));
}
}
}