feat: add usedimplicitly attribute

This commit is contained in:
Timothy Schenk 2023-08-13 14:12:04 +02:00
parent 0b3f543c69
commit 27af53eb56
3 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ using JetBrains.Annotations;
using NetCoreServer; using NetCoreServer;
using Packets; using Packets;
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
public interface IPacketHandler<in T> where T : IPacket public interface IPacketHandler<in T> where T : IPacket
{ {
[UsedImplicitly] [UsedImplicitly]

View file

@ -1,5 +1,8 @@
namespace Server.Packets; namespace Server.Packets;
using JetBrains.Annotations;
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
public interface IPacket public interface IPacket
{ {
public void Deserialize(byte[] data); public void Deserialize(byte[] data);