PacketMediator/RaiNote.PacketMediator/PacketIdAttribute.cs
Timothy Schenk 4dc8fbe845
Some checks failed
Release Rai.PacketMediator / preprocess (push) Successful in 3s
Release Rai.PacketMediator / build (push) Failing after 18s
Release Rai.PacketMediator / publish (push) Has been skipped
Release Rai.PacketMediator / generate-licences (push) Has been skipped
chore: nuget adjustments for packet ID
2024-04-04 16:32:04 +02:00

14 lines
379 B
C#

// Licensed to Timothy Schenk under the Apache 2.0 License.
namespace RaiNote.PacketMediator;
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public abstract class PacketIdAttribute<TPacketIdEnum> : Attribute where TPacketIdEnum : Enum
{
protected PacketIdAttribute(TPacketIdEnum code)
{
Code = code;
}
public TPacketIdEnum Code { get; }
}