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