18 lines
455 B
C#
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);
|
|
}
|
|
}
|