12 lines
329 B
C#
12 lines
329 B
C#
|
namespace Server.Packets;
|
|||
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
|
|||
|
[JetBrains.Annotations.BaseTypeRequiredAttribute(typeof(IPacket))]
|
|||
|
public class PacketIdAttribute : Attribute
|
|||
|
{
|
|||
|
public PacketIdAttribute(PacketId packetId)
|
|||
|
{
|
|||
|
PacketId = packetId;
|
|||
|
}
|
|||
|
|
|||
|
public PacketId PacketId { get; private set; }
|
|||
|
}
|