forked from sin365/AxibugEmuOnline
19 lines
431 B
C#
19 lines
431 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace StoicGoose.Common.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
public class PortAttribute : Attribute
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public List<ushort> Numbers { get; set; } = new();
|
|
|
|
public PortAttribute(string name, params ushort[] numbers)
|
|
{
|
|
Name = name;
|
|
Numbers.AddRange(numbers);
|
|
}
|
|
}
|
|
}
|