PacketMediator/RaiNote.PacketMediator/PacketIdAttribute.cs

15 lines
379 B
C#
Raw Permalink Normal View History

2024-02-26 13:18:04 +01:00
// Licensed to Timothy Schenk under the Apache 2.0 License.
2024-02-08 12:55:35 +01:00
2024-04-04 16:32:04 +02:00
namespace RaiNote.PacketMediator;
2024-02-08 12:55:35 +01:00
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public abstract class PacketIdAttribute<TPacketIdEnum> : Attribute where TPacketIdEnum : Enum
{
protected PacketIdAttribute(TPacketIdEnum code)
{
Code = code;
}
public TPacketIdEnum Code { get; }
}