fork from 1.3
This commit is contained in:
18
FreeSR.Gateserver/Manager/Handlers/Core/HandlerAttribute.cs
Normal file
18
FreeSR.Gateserver/Manager/Handlers/Core/HandlerAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user