mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-15 04:54:33 +01:00
CustomHead and Frame impl, with GetMainDataRsp fix
This commit is contained in:
23
GameServer/Handlers/Three/SetCustomHeadReqHandler.cs
Normal file
23
GameServer/Handlers/Three/SetCustomHeadReqHandler.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Common.Resources.Proto;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers.Three
|
||||
{
|
||||
[PacketCmdId(CmdId.SetCustomHeadReq)]
|
||||
internal class SetCustomHeadReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
SetCustomHeadReq Data = packet.GetDecodedBody<SetCustomHeadReq>();
|
||||
session.Player.User.CustomHeadId = (int)Data.Id;
|
||||
|
||||
GetMainDataRsp mainDataRsp = new()
|
||||
{
|
||||
retcode = GetMainDataRsp.Retcode.Succ,
|
||||
CustomHeadId = Data.Id,
|
||||
TypeLists = new uint[] { 36 }
|
||||
};
|
||||
|
||||
session.Send(Packet.FromProto(mainDataRsp, CmdId.GetMainDataRsp), Packet.FromProto(new SetCustomHeadRsp() { retcode = SetCustomHeadRsp.Retcode.Succ }, CmdId.SetCustomHeadRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user