Files
FreeSR/FreeSR.Gateserver/Manager/Handlers/Core/HandlerAttribute.cs
2024-01-27 21:06:07 +08:00

19 lines
455 B
C#

namespace FreeSR.Gateserver.Manager.Handlers.Core
{
using FreeSR.Gateserver.Network;
using FreeSR.Proto;
[AttributeUsage(AttributeTargets.Method)]
internal class HandlerAttribute : Attribute
{
public int CmdID { get; }
public HandlerAttribute(CmdType cmdID)
{
this.CmdID = (int)cmdID;
}
public delegate void HandlerDelegate(NetSession session, int cmdId, object data);
}
}