2018-12-22 18:40:30 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2019-11-16 06:16:33 +00:00
|
|
|
|
using BizHawk.Client.Common;
|
2018-12-22 18:40:30 +00:00
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
|
|
|
|
{
|
2019-12-15 15:05:33 +00:00
|
|
|
|
public sealed class ApiContainer : ApiSubsetContainer
|
2018-12-22 18:40:30 +00:00
|
|
|
|
{
|
2019-12-14 17:52:48 +00:00
|
|
|
|
public IComm Comm => (IComm) Libraries[typeof(CommApi)];
|
|
|
|
|
public IGui Gui => (IGui) Libraries[typeof(GuiApi)];
|
|
|
|
|
public IInput Input => (IInput) Libraries[typeof(InputApi)];
|
|
|
|
|
public ISaveState SaveState => (ISaveState) Libraries[typeof(SaveStateApi)];
|
|
|
|
|
public ITool Tool => (ITool) Libraries[typeof(ToolApi)];
|
|
|
|
|
|
|
|
|
|
public ApiContainer(Dictionary<Type, IExternalApi> libs) : base(libs) {}
|
2018-12-22 18:40:30 +00:00
|
|
|
|
}
|
|
|
|
|
}
|