continuity/Server/PacketHandlers/IPacketHandler.cs

13 lines
299 B
C#
Raw Normal View History

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