continuity/Server.Packets/PacketIdAttribute.cs

12 lines
329 B
C#
Raw Normal View History

2022-12-29 10:23:24 +00:00
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; }
}