BizHawk/BizHawk.Emulation.Common/Interfaces/IEmulatorServiceProvider.cs

17 lines
405 B
C#
Raw Normal View History

namespace BizHawk.Emulation.Common
{
public interface IEmulatorServiceProvider
{
/// <summary>
/// Returns whether or not T is available
/// </summary>
bool HasService<T>() where T : IEmulatorService;
/// <summary>
/// Returns an instance of T if T is available
/// Else returns null
/// </summary>
IEmulatorService GetService<T>() where T : IEmulatorService;
}
}