mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2026-09-17 21:21:36 +02:00
handlers folder re-strucutring
This commit is contained in:
1 parent
f822976f74
commit
cb2bc9d56e
74 files changed
+31
-15
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,15 +0,0 @@
|
||||
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 };
|
||||
|
||||
session.Send(Packet.FromProto(Rsp, CmdId.GetGodWarRsp));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user