mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 12:24:38 +01:00
at least you can end the stage
This commit is contained in:
29
GameServer/Handlers/GetEquipmentDataReqHandler.cs
Normal file
29
GameServer/Handlers/GetEquipmentDataReqHandler.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Common.Database;
|
||||
using Common.Resources.Proto;
|
||||
using MongoDB.Driver;
|
||||
|
||||
namespace PemukulPaku.GameServer.Handlers
|
||||
{
|
||||
[PacketCmdId(CmdId.GetEquipmentDataReq)]
|
||||
internal class GetEquipmentDataReqHandler : IPacketHandler
|
||||
{
|
||||
public void Handle(Session session, Packet packet)
|
||||
{
|
||||
EquipmentScheme Equipment = session.Player.Equipment;
|
||||
|
||||
GetEquipmentDataRsp Rsp = new()
|
||||
{
|
||||
retcode = GetEquipmentDataRsp.Retcode.Succ,
|
||||
VitalityValue = 0,
|
||||
IsAll = true
|
||||
};
|
||||
|
||||
Rsp.MaterialLists.AddRange(Equipment.MaterialList.ToList());
|
||||
Rsp.MechaLists.AddRange(Equipment.MechaList.ToList());
|
||||
Rsp.StigmataLists.AddRange(Equipment.StigmataList.ToList());
|
||||
Rsp.WeaponLists.AddRange(Equipment.WeaponList.ToList());
|
||||
|
||||
session.Send(Packet.FromProto(Rsp, CmdId.GetEquipmentDataRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user