using System;
using System.Collections.Generic;
using System.Linq;
namespace BizHawk.Emulation.Common
{
///
/// This interface specifies that an interface or implementation is a emulator core service, such as IDebuggable,
/// but is an optional part of the core functionality
/// Clients should gracefully handle an IEmulator that has a missing or partial implementation of one of these services
///
public interface IEmulatorService
{
}
///
/// Should be added to any field of an ICoreService that is not implemented. By Convention it should also throw a NotImplementedException
/// Any feature that does not have this attribute is assumed to be implemented
///
public class FeatureNotImplemented : Attribute
{
public FeatureNotImplemented() { }
}
[AttributeUsage(AttributeTargets.Class)]
public class ServiceNotApplicable : Attribute
{
public ServiceNotApplicable(params Type[] types)
{
if (types != null)
{
NotApplicableTypes = types.ToList();
}
else
{
NotApplicableTypes = new List();
}
}
public IEnumerable NotApplicableTypes { get; private set; }
}
}