handles draw and comms command

This commit is contained in:
rfi
2023-11-13 19:33:51 +07:00
parent 6c5aca3c3a
commit 1a77d304a0
3 changed files with 41 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
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 DrawGetDrawGroupListResponse
{
public int Code { get; set; }
public List<dynamic> DrawGroupInfoList { get; set; } = new();
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
#endregion
internal class DrawModule
{
[RequestPacketHandler("DrawGetDrawGroupListRequest")]
public static void DrawGetDrawGroupListRequestHandler(Session session, Packet.Request packet)
{
session.SendResponse(new DrawGetDrawGroupListResponse(), packet.Id);
}
}
}