forked from PGR/ascnet
1
0
Fork 0

BossSingleRankInfoRequest stub to prevent softlock when entering Pain Cage

This commit is contained in:
Kyle Belanger 2024-04-13 00:53:57 -04:00
parent aae1314558
commit 591b74e0b1
3 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,29 @@
using MessagePack;
namespace AscNet.GameServer.Handlers
{
#region MsgPackScheme
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
[MessagePackObject(true)]
public class BossSingleRankInfoRequest
{
}
[MessagePackObject(true)]
public class BossSingleRankInfoResponse
{
public int Code;
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion
internal class BossModule
{
[RequestPacketHandler("BossSingleRankInfoRequest")]
public static void BossSingleRankInfoRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new BossSingleRankInfoResponse() { Code = 1 }, packet.Id);
}
}
}

View File

@ -41,7 +41,7 @@ namespace AscNet.GameServer.Handlers
} }
[RequestPacketHandler("ItemUseRequest")] [RequestPacketHandler("ItemUseRequest")]
public static void ItemUseRequest(Session session, Packet.Request packet) public static void ItemUseRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new ItemUseResponse() { Code = 1 }, packet.Id); session.SendResponse(new ItemUseResponse() { Code = 1 }, packet.Id);
} }

View File

@ -29,7 +29,7 @@ namespace AscNet.GameServer.Handlers
} }
[RequestPacketHandler("PayInitiatedRequest")] [RequestPacketHandler("PayInitiatedRequest")]
public static void PayInitiatedRequest(Session session, Packet.Request packet) public static void PayInitiatedRequestHandler(Session session, Packet.Request packet)
{ {
session.SendResponse(new PayInitiatedResponse() { Code = 1 }, packet.Id); session.SendResponse(new PayInitiatedResponse() { Code = 1 }, packet.Id);
} }