Move most API interfaces and implementations to BizHawk.Client.Common
This commit is contained in:
parent
13e4b5396d
commit
fab882b7a5
|
@ -56,17 +56,7 @@
|
|||
<Compile Include="Attributes\BizHawkExternalToolUsageAttribute.cs" />
|
||||
<Compile Include="Attributes\BizHawkExternalToolAttribute.cs" />
|
||||
<Compile Include="Classes\ApiInjector.cs" />
|
||||
<Compile Include="Classes\Api\EmuApi.cs" />
|
||||
<Compile Include="Classes\Api\GameInfoApi.cs" />
|
||||
<Compile Include="Classes\Api\MemApi.cs" />
|
||||
<Compile Include="Classes\Api\MemApiBase.cs" />
|
||||
<Compile Include="Classes\Api\PluginBase.cs" />
|
||||
<Compile Include="Classes\Api\JoypadApi.cs" />
|
||||
<Compile Include="Classes\Api\MemEventsApi.cs" />
|
||||
<Compile Include="Classes\Api\MemorySaveStateApi.cs" />
|
||||
<Compile Include="Classes\Api\MovieApi.cs" />
|
||||
<Compile Include="Classes\Api\SqlApi.cs" />
|
||||
<Compile Include="Classes\Api\UserDataApi.cs" />
|
||||
<Compile Include="Classes\BasicApiProvider.cs" />
|
||||
<Compile Include="Classes\BizHawkSystemIdToCoreSystemEnumConverter.cs" />
|
||||
<Compile Include="Classes\Events\EventArgs\BeforeQuickLoadEventArgs.cs" />
|
||||
|
@ -82,25 +72,9 @@
|
|||
<Compile Include="Enums\BizHawkExternalToolUsage.cs" />
|
||||
<Compile Include="Classes\ClientApi.cs" />
|
||||
<Compile Include="Classes\ExternalToolManager.cs" />
|
||||
<Compile Include="Interfaces\Api\IComm.cs" />
|
||||
<Compile Include="Interfaces\Api\IInput.cs" />
|
||||
<Compile Include="Interfaces\Api\ITool.cs" />
|
||||
<Compile Include="Interfaces\Api\ISaveState.cs" />
|
||||
<Compile Include="Interfaces\Api\IUserData.cs" />
|
||||
<Compile Include="Interfaces\Api\ISql.cs" />
|
||||
<Compile Include="Interfaces\Api\IInputMovie.cs" />
|
||||
<Compile Include="Interfaces\Api\IMemorySavestate.cs" />
|
||||
<Compile Include="Interfaces\Api\IMemEvents.cs" />
|
||||
<Compile Include="Interfaces\Api\IEmu.cs" />
|
||||
<Compile Include="Interfaces\Api\IExternalApi.cs" />
|
||||
<Compile Include="Interfaces\Api\IJoypad.cs" />
|
||||
<Compile Include="Interfaces\IExternalApiProvider.cs" />
|
||||
<Compile Include="Interfaces\IExternalToolForm.cs" />
|
||||
<Compile Include="Interfaces\Api\IGameInfo.cs" />
|
||||
<Compile Include="Interfaces\Api\IGui.cs" />
|
||||
<Compile Include="Interfaces\Api\IMem.cs" />
|
||||
<Compile Include="Interfaces\IPlugin.cs" />
|
||||
<Compile Include="Interfaces\Api\IApiContainer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
{
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
{
|
||||
interface IPlugin
|
||||
{
|
||||
|
|
|
@ -13,7 +13,7 @@ using BizHawk.Emulation.Cores.Sega.MasterSystem;
|
|||
using BizHawk.Emulation.Cores.WonderSwan;
|
||||
using BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
[Description("A library for interacting with the currently loaded emulator core")]
|
||||
public sealed class EmuApi : IEmu
|
|
@ -3,7 +3,7 @@
|
|||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class GameInfoApi : IGameInfo
|
||||
{
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class JoypadApi : IJoypad
|
||||
{
|
|
@ -5,7 +5,7 @@ using BizHawk.Emulation.Common;
|
|||
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
||||
using BizHawk.Common.BufferExtensions;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class MemApi : MemApiBase, IMem
|
||||
{
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for the Memory and MainMemory plugin libraries
|
|
@ -3,7 +3,7 @@
|
|||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Emulation.Common.IEmulatorExtensions;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class MemEventsApi : IMemEvents
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.IO;
|
|||
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class MemorySaveStateApi : IMemorySaveState
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.IO;
|
|||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class MovieApi : IInputMovie
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Data.SQLite;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class SqlApi : ISql
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public sealed class UserDataApi : IUserData
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IApiContainer
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IComm : IExternalApi
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IEmu : IExternalApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// This interface specifies that a client exposes a given interface, such as <see cref="BizHawk.Emulation.Common.IDebuggable"/>,
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IGameInfo : IExternalApi
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
using System.Drawing.Imaging;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IGui : IExternalApi
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IInput : IExternalApi
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IInputMovie : IExternalApi
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IJoypad : IExternalApi
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IMem : IExternalApi
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IMemEvents : IExternalApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IMemorySaveState : IExternalApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface ISaveState : IExternalApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface ISql : IExternalApi
|
||||
{
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface ITool : IExternalApi
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace BizHawk.Client.ApiHawk
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
public interface IUserData : IExternalApi
|
||||
{
|
|
@ -82,7 +82,33 @@
|
|||
<Compile Include="..\Version\VersionInfo.cs">
|
||||
<Link>VersionInfo.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="Api\Classes\EmuApi.cs" />
|
||||
<Compile Include="Api\Classes\GameInfoApi.cs" />
|
||||
<Compile Include="Api\Classes\JoypadApi.cs" />
|
||||
<Compile Include="Api\Classes\MemApi.cs" />
|
||||
<Compile Include="Api\Classes\MemApiBase.cs" />
|
||||
<Compile Include="Api\Classes\MemEventsApi.cs" />
|
||||
<Compile Include="Api\Classes\MemorySaveStateApi.cs" />
|
||||
<Compile Include="Api\Classes\MovieApi.cs" />
|
||||
<Compile Include="Api\Classes\SqlApi.cs" />
|
||||
<Compile Include="Api\Classes\UserDataApi.cs" />
|
||||
<Compile Include="Api\CoreSystem.cs" />
|
||||
<Compile Include="Api\Interfaces\IApiContainer.cs" />
|
||||
<Compile Include="Api\Interfaces\IComm.cs" />
|
||||
<Compile Include="Api\Interfaces\IEmu.cs" />
|
||||
<Compile Include="Api\Interfaces\IExternalApi.cs" />
|
||||
<Compile Include="Api\Interfaces\IGameInfo.cs" />
|
||||
<Compile Include="Api\Interfaces\IGui.cs" />
|
||||
<Compile Include="Api\Interfaces\IInput.cs" />
|
||||
<Compile Include="Api\Interfaces\IInputMovie.cs" />
|
||||
<Compile Include="Api\Interfaces\IJoypad.cs" />
|
||||
<Compile Include="Api\Interfaces\IMem.cs" />
|
||||
<Compile Include="Api\Interfaces\IMemEvents.cs" />
|
||||
<Compile Include="Api\Interfaces\IMemorySavestate.cs" />
|
||||
<Compile Include="Api\Interfaces\ISaveState.cs" />
|
||||
<Compile Include="Api\Interfaces\ISql.cs" />
|
||||
<Compile Include="Api\Interfaces\ITool.cs" />
|
||||
<Compile Include="Api\Interfaces\IUserData.cs" />
|
||||
<Compile Include="Api\JoypadButton.cs" />
|
||||
<Compile Include="BinarySaveStates.cs" />
|
||||
<Compile Include="BitmapBufferVideoProvider.cs" />
|
||||
|
|
|
@ -4,6 +4,7 @@ using System.Reflection;
|
|||
using System.Linq;
|
||||
|
||||
using BizHawk.Client.ApiHawk;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using System.Reflection;
|
|||
using BizHawk.Common.ReflectionExtensions;
|
||||
using BizHawk.Emulation.Common;
|
||||
using BizHawk.Client.ApiHawk;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ using System.Collections.Generic;
|
|||
using System.Net.Http;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using System.Windows.Forms;
|
|||
using System.IO;
|
||||
|
||||
using BizHawk.Client.ApiHawk;
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
|
||||
using BizHawk.Client.ApiHawk;
|
||||
using BizHawk.Client.Common;
|
||||
|
||||
namespace BizHawk.Client.EmuHawk
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue