12 lines
299 B
C#
12 lines
299 B
C#
namespace Server.PacketHandlers;
|
|
|
|
using JetBrains.Annotations;
|
|
using NetCoreServer;
|
|
using Packets;
|
|
|
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
|
public interface IPacketHandler<in T> where T : IPacket
|
|
{
|
|
[UsedImplicitly]
|
|
public Task HandleAsync(T packet, TcpSession session);
|
|
}
|