handlers folder re-strucutring

This commit is contained in:
rafi1212122
2023-06-05 13:18:07 +07:00
parent f822976f74
commit cb2bc9d56e
74 changed files with 31 additions and 15 deletions

View File

@@ -0,0 +1,59 @@
using Common.Resources.Proto;
namespace PemukulPaku.GameServer.Handlers
{
[PacketCmdId(CmdId.GetWarshipDataReq)]
internal class GetWarshipDataReqHandler : IPacketHandler
{
public void Handle(Session session, Packet packet)
{
GetWarshipDataRsp Rsp = new()
{
retcode = GetWarshipDataRsp.Retcode.Succ,
IsAll = true
};
List<WarshipThemeData> Warships = new()
{
new()
{
WarshipId = 0,
BgmPlayMode = 0,
IsWeatherFixed = false,
WeatherIdx = 0
},
new()
{
WarshipId = 400002,
BgmPlayMode = 0,
IsWeatherFixed = false,
WeatherIdx = 0
},
new()
{
WarshipId = 400003,
BgmPlayMode = 0,
IsWeatherFixed = false,
WeatherIdx = 0
},
new()
{
WarshipId = 400004,
BgmPlayMode = 0,
IsWeatherFixed = false,
WeatherIdx = 0
},
new()
{
WarshipId = 400006,
BgmPlayMode = 0,
IsWeatherFixed = false,
WeatherIdx = 0
}
};
Rsp.WarshipLists.AddRange(Warships);
session.Send(Packet.FromProto(Rsp, CmdId.GetWarshipDataRsp));
}
}
}