BizHawk/src/BizHawk.Emulation.Common/CoreAttribute.cs

30 lines
906 B
C#

using System;
namespace BizHawk.Emulation.Common
{
[AttributeUsage(AttributeTargets.Class)]
public sealed class CoreAttribute : Attribute
{
public CoreAttribute(string name, string author, bool isPorted, bool isReleased, string portedVersion = null, string portedUrl = null, bool singleInstance = false, string displayName = null)
{
CoreName = name;
Author = author;
Ported = isPorted;
Released = isReleased;
PortedVersion = portedVersion ?? string.Empty;
PortedUrl = portedUrl ?? string.Empty;
SingleInstance = singleInstance;
DisplayName = displayName;
}
public string CoreName { get; }
public string DisplayName { get; }
public string Author { get; }
public bool Ported { get; }
public bool Released { get; }
public string PortedVersion { get; }
public string PortedUrl { get; }
public bool SingleInstance { get; }
}
}