warship & nick change

This commit is contained in:
rafi1212122
2023-06-01 15:55:13 +07:00
parent 7ab7fae2bf
commit 35313b8787
8 changed files with 435 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using Common;
using Common.Resources.Proto;
namespace PemukulPaku.GameServer.Handlers
{
[PacketCmdId(CmdId.GetWarshipTrialDataReq)]
internal class GetWarshipTrialDataReqHandler : IPacketHandler
{
public void Handle(Session session, Packet packet)
{
GetWarshipTrialDataRsp Rsp = new()
{
retcode = GetWarshipTrialDataRsp.Retcode.Succ,
IsAll = true
};
Rsp.TrialWarshipLists.Add(new TrialWarship()
{
SampleId = 410002,
EndTime = (uint)Global.GetUnixInSeconds() + 400000
});
session.Send(Packet.FromProto(Rsp, CmdId.GetWarshipTrialDataRsp));
}
}
}