2023-10-14 15:05:58 +00:00
|
|
|
|
using AscNet.Common.MsgPack;
|
2024-04-13 04:24:12 +00:00
|
|
|
|
using MessagePack;
|
2023-10-14 15:05:58 +00:00
|
|
|
|
|
|
|
|
|
namespace AscNet.GameServer.Handlers
|
|
|
|
|
{
|
2024-04-13 04:24:12 +00:00
|
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
2023-10-14 15:05:58 +00:00
|
|
|
|
internal class TaskModule
|
|
|
|
|
{
|
|
|
|
|
[RequestPacketHandler("DoClientTaskEventRequest")]
|
|
|
|
|
public static void DoClientTaskEventRequestHandler(Session session, Packet.Request packet)
|
|
|
|
|
{
|
2024-04-13 04:24:12 +00:00
|
|
|
|
session.SendResponse(new DoClientTaskEventResponse(), packet.Id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[RequestPacketHandler("GetCourseRewardRequest")]
|
|
|
|
|
public static void GetCourseRewardRequestHandler(Session session, Packet.Request packet)
|
|
|
|
|
{
|
|
|
|
|
session.SendResponse(new GetCourseRewardResponse() { Code = 1 }, packet.Id);
|
2023-10-14 15:05:58 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|