blob: 6429db5848d0ce37ed2a76b50fe0db2cfb398db1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace StardewModdingAPI.Framework.Reflection
{
/// <summary>Generates proxy classes to access mod APIs through an arbitrary interface.</summary>
internal interface IInterfaceProxyFactory
{
/*********
** Methods
*********/
/// <summary>Create an API proxy.</summary>
/// <typeparam name="TInterface">The interface through which to access the API.</typeparam>
/// <param name="instance">The API instance to access.</param>
/// <param name="sourceModID">The unique ID of the mod consuming the API.</param>
/// <param name="targetModID">The unique ID of the mod providing the API.</param>
TInterface CreateProxy<TInterface>(object instance, string sourceModID, string targetModID)
where TInterface : class;
}
}
|