Files
Pf2eDataScrapper/Pf2eDataScrapper/Importers/Implementations/Aonprd/DataBuilder/AonprdProcessorAttribute.cs
T

21 lines
709 B
C#

namespace Pf2eDataScrapper.Importers.Implementations.Aonprd.DataBuilder;
[AttributeUsage(AttributeTargets.Class)]
public class AonprdProcessorAttribute(string name, string? type, string[] dependencies) : Attribute
{
public readonly string Name = name;
public readonly string? Type = type;
public readonly IEnumerable<string> Dependencies = dependencies;
public AonprdProcessorAttribute(string type)
: this(type, type, ["trait", "source"]) { }
public AonprdProcessorAttribute(string type, string[] dependencies)
: this(type, type, dependencies) { }
public AonprdProcessorAttribute(string name, string type)
: this(name, type, ["trait", "source"]) { }
}