continuity/Wonderking/Packets/PacketIdAttribute.cs

12 lines
260 B
C#

namespace Wonderking.Packets;
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class PacketIdAttribute : Attribute
{
public PacketIdAttribute(OperationCode code)
{
Code = code;
}
public OperationCode Code { get; }
}