continuity/Rai.PacketMediator/PacketIdAttribute.cs

15 lines
348 B
C#
Raw Normal View History

2023-11-21 20:37:50 +00:00
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
2023-11-20 18:58:30 +00:00
namespace Rai.PacketMediator;
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public abstract class PacketIdAttribute<T> : Attribute where T : Enum
{
protected PacketIdAttribute(T code)
2023-11-19 16:07:28 +00:00
{
Code = code;
}
public T Code { get; }
}