mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 06:04:36 +01:00
handlers folder re-strucutring
This commit is contained in:
22
GameServer/Handlers/One/ReportBirthdayReqHandler.cs
Normal file
22
GameServer/Handlers/One/ReportBirthdayReqHandler.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers
|
||||
{
|
||||
[PacketCmdId(CmdId.ReportBirthdayReq)]
|
||||
internal class ReportBirthdayReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
ReportBirthdayReq Data = packet.GetDecodedBody<ReportBirthdayReq>();
|
||||
session.Player.User.BirthDate = (int)Data.Birthday;
|
||||
GetMainDataRsp mainDataRsp = new()
|
||||
{
|
||||
retcode = GetMainDataRsp.Retcode.Succ,
|
||||
Birthday = Data.Birthday
|
||||
};
|
||||
ReportBirthdayRsp Rsp = new() { retcode = ReportBirthdayRsp.Retcode.Succ };
|
||||
|
||||
session.Send(Packet.FromProto(mainDataRsp, CmdId.GetMainDataRsp), Packet.FromProto(Rsp, CmdId.ReportBirthdayRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user