blob: 8cfe6f5f176d7820d730a921f830f6a269cbf861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
namespace StardewModdingAPI.Framework
{
/// <summary>A generic tuple which links something to a mod.</summary>
/// <typeparam name="T">The interceptor type.</typeparam>
internal class ModLinked<T>
{
/*********
** Accessors
*********/
/// <summary>The mod metadata.</summary>
public IModMetadata Mod { get; }
/// <summary>The instance linked to the mod.</summary>
public T Data { get; }
/*********
** Public methods
*********/
/// <summary>Construct an instance.</summary>
/// <param name="mod">The mod metadata.</param>
/// <param name="data">The instance linked to the mod.</param>
public ModLinked(IModMetadata mod, T data)
{
this.Mod = mod;
this.Data = data;
}
}
}
|