This repository has been archived on 2024-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Gateserver/Manager/Handlers/Core/HandlerAttribute.cs
2024-01-27 21:06:07 +08:00

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