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

19 lines
455 B
C#
Raw Permalink Normal View History

2024-01-27 13:06:07 +00:00
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);
}
}