mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 15:04:36 +01:00
more handler, unfinished excel dump, added proxy alternative
This commit is contained in:
33
Novaria.GameServer/Controllers/Api/ProtocolHandlers/Star.cs
Normal file
33
Novaria.GameServer/Controllers/Api/ProtocolHandlers/Star.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using Google.Protobuf;
|
||||
using Novaria.Common.Core;
|
||||
using Proto;
|
||||
namespace Novaria.GameServer.Controllers.Api.ProtocolHandlers
|
||||
{
|
||||
public class Star : ProtocolHandlerBase
|
||||
{
|
||||
public Star(IProtocolHandlerFactory protocolHandlerFactory) : base(protocolHandlerFactory)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[ProtocolHandler(NetMsgId.star_tower_info_req)] // req id goes here
|
||||
public Packet PlayerLoginHandler(Nil req)
|
||||
{
|
||||
StarTowerInfo towerResp = new();
|
||||
|
||||
return Packet.Create(NetMsgId.star_tower_info_succeed_ack, towerResp);
|
||||
}
|
||||
|
||||
[ProtocolHandler(NetMsgId.star_tower_build_brief_list_get_req)]
|
||||
public Packet StarTowerBuildListGetHandler(Nil req)
|
||||
{
|
||||
return Packet.Create(NetMsgId.star_tower_build_brief_list_get_succeed_ack, PcapParser.PcapParser.Instance.GetPcapPacket(NetMsgId.star_tower_build_brief_list_get_succeed_ack));
|
||||
}
|
||||
|
||||
[ProtocolHandler(NetMsgId.star_tower_build_detail_get_req)]
|
||||
public Packet StarTowerBuildDetailGetHandler(StarTowerBuildDetailGetReq req)
|
||||
{
|
||||
return Packet.Create(NetMsgId.star_tower_build_detail_get_succeed_ack, PcapParser.PcapParser.Instance.GetPcapPacket(NetMsgId.star_tower_build_detail_get_succeed_ack));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user