diff options
Diffstat (limited to 'src/SMAPI/IModRegistry.cs')
-rw-r--r-- | src/SMAPI/IModRegistry.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI/IModRegistry.cs b/src/SMAPI/IModRegistry.cs index 10b3121e..9b99e459 100644 --- a/src/SMAPI/IModRegistry.cs +++ b/src/SMAPI/IModRegistry.cs @@ -25,5 +25,12 @@ namespace StardewModdingAPI /// <typeparam name="TInterface">The interface which matches the properties and methods you intend to access.</typeparam> /// <param name="uniqueID">The mod's unique ID.</param> TInterface GetApi<TInterface>(string uniqueID) where TInterface : class; + + /// <summary>Try to proxy (or unproxy back) the given object to a given interface provided by a mod.</summary> + /// <typeparam name="TInterface">The interface type to proxy (or unproxy) to.</typeparam> + /// <param name="uniqueID">The mod's unique ID.</param> + /// <param name="toProxy">The object to try to proxy (or unproxy back).</param> + /// <param name="proxy">The reference to store the proxied (or unproxied) object back.</param> + bool TryProxy<TInterface>(string uniqueID, object toProxy, out TInterface proxy) where TInterface : class; } } |