2023-11-06 09:11:36 +00:00
|
|
|
using Wonderking.Packets;
|
|
|
|
|
2023-10-12 07:15:34 +00:00
|
|
|
namespace Server.PacketHandlers;
|
2023-08-10 08:47:35 +00:00
|
|
|
|
2023-08-12 21:02:59 +00:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
using NetCoreServer;
|
2023-08-09 14:23:41 +00:00
|
|
|
|
2023-08-13 12:12:04 +00:00
|
|
|
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
2023-08-10 23:16:51 +00:00
|
|
|
public interface IPacketHandler<in T> where T : IPacket
|
2023-08-09 14:23:41 +00:00
|
|
|
{
|
2023-08-12 21:02:59 +00:00
|
|
|
[UsedImplicitly]
|
2023-08-10 23:16:51 +00:00
|
|
|
public Task HandleAsync(T packet, TcpSession session);
|
2023-08-11 09:31:30 +00:00
|
|
|
}
|