2014-12-16 23:33:07 +00:00
|
|
|
|
using System;
|
2015-11-14 21:11:13 +00:00
|
|
|
|
using System.Collections.Generic;
|
2019-10-13 18:21:15 +00:00
|
|
|
|
using System.Linq;
|
2014-12-16 23:33:07 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public sealed class ToolAttribute : Attribute
|
2014-12-16 23:33:07 +00:00
|
|
|
|
{
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public ToolAttribute(bool released, string[] supportedSystems, string[] unsupportedCores)
|
2014-12-16 23:33:07 +00:00
|
|
|
|
{
|
|
|
|
|
Released = released;
|
2019-10-13 18:21:15 +00:00
|
|
|
|
SupportedSystems = supportedSystems ?? Enumerable.Empty<string>();
|
|
|
|
|
UnsupportedCores = unsupportedCores ?? Enumerable.Empty<string>();
|
2014-12-16 23:33:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-02-18 15:10:24 +00:00
|
|
|
|
public ToolAttribute(bool released, string[] supportedSystems) : this(released, supportedSystems, null) {}
|
|
|
|
|
|
2019-10-13 18:21:15 +00:00
|
|
|
|
public bool Released { get; }
|
2015-11-14 21:11:13 +00:00
|
|
|
|
|
2019-10-13 18:21:15 +00:00
|
|
|
|
public IEnumerable<string> SupportedSystems { get; }
|
2018-09-10 19:08:44 +00:00
|
|
|
|
|
2019-10-13 18:21:15 +00:00
|
|
|
|
public IEnumerable<string> UnsupportedCores { get; }
|
2014-12-16 23:33:07 +00:00
|
|
|
|
}
|
|
|
|
|
}
|