Add IPacketHandler
This commit is contained in:
parent
b5c3b430fa
commit
5b72ff6c0a
4 changed files with 28 additions and 11 deletions
16
TShockAPI/Handlers/IPacketHandler.cs
Normal file
16
TShockAPI/Handlers/IPacketHandler.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace TShockAPI.Handlers
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes a packet handler that receives a packet from a GetDataHandler
|
||||
/// </summary>
|
||||
/// <typeparam name="TEventArgs"></typeparam>
|
||||
public interface IPacketHandler<TEventArgs> where TEventArgs : GetDataHandledEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Invoked when the packet is received
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="args"></param>
|
||||
void OnReceive(object sender, TEventArgs args);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue