mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 22:24:34 +01:00
32 lines
909 B
C#
32 lines
909 B
C#
using Common;
|
|
using Common.Resources.Proto;
|
|
|
|
namespace PemukulPaku.GameServer.Handlers
|
|
{
|
|
[PacketCmdId(CmdId.GetGodWarReq)]
|
|
internal class GetGodWarReqHandler : IPacketHandler
|
|
{
|
|
public void Handle(Session session, Packet packet)
|
|
{
|
|
GetGodWarRsp Rsp = new() { retcode = GetGodWarRsp.Retcode.Succ };
|
|
|
|
GodWar godWar = new()
|
|
{
|
|
GodWarId = 1,
|
|
BeginTime = 0,
|
|
EndTime = (uint)Global.GetUnixInSeconds() * 12 / 10,
|
|
MaxSupportPoint = 95,
|
|
LobbyId = 1,
|
|
CurChapterId = 1,
|
|
RoleInfo = new()
|
|
{
|
|
|
|
}
|
|
};
|
|
godWar.ChapterLists.AddRange(new uint[] { 1, 2, 3 }.Select(x => new GodWarChapter() { ChapterId = x }));
|
|
|
|
session.Send(Packet.FromProto(Rsp, CmdId.GetGodWarRsp));
|
|
}
|
|
}
|
|
}
|