forked from PGR/ascnet
1
0
Fork 0
ascnet/AscNet.GameServer/Handlers/BossModule.cs

30 lines
900 B
C#

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);
}
}
}