GetCourseRewardRequest stub to prevent softlock on course reward claim

This commit is contained in:
Kyle Belanger 2024-04-13 00:24:12 -04:00
parent 73af9e9d5f
commit 443a4393a5
1 changed files with 25 additions and 5 deletions

View File

@ -1,17 +1,37 @@
using AscNet.Common.MsgPack; using AscNet.Common.MsgPack;
using MessagePack;
namespace AscNet.GameServer.Handlers 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 GetCourseRewardRequest
{
public int StageId;
}
[MessagePackObject(true)]
public class GetCourseRewardResponse
{
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 TaskModule internal class TaskModule
{ {
[RequestPacketHandler("DoClientTaskEventRequest")] [RequestPacketHandler("DoClientTaskEventRequest")]
public static void DoClientTaskEventRequestHandler(Session session, Packet.Request packet) public static void DoClientTaskEventRequestHandler(Session session, Packet.Request packet)
{ {
DoClientTaskEventResponse doClientTaskEventResponse = new() session.SendResponse(new DoClientTaskEventResponse(), packet.Id);
{ }
Code = 0
}; [RequestPacketHandler("GetCourseRewardRequest")]
session.SendResponse(doClientTaskEventResponse, packet.Id); public static void GetCourseRewardRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new GetCourseRewardResponse() { Code = 1 }, packet.Id);
} }
} }
} }