forked from LeFauxMatt/StardewMods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IEasyAccessApi.cs
30 lines (26 loc) · 1.03 KB
/
IEasyAccessApi.cs
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
30
namespace StardewMods.Common.Integrations.EasyAccess;
using System.Collections.Generic;
using StardewModdingAPI;
/// <summary>
/// API for Easy Access.
/// </summary>
public interface IEasyAccessApi
{
/// <summary>
/// Adds GMCM options for producer data.
/// </summary>
/// <param name="manifest">The mod's manifest.</param>
/// <param name="data">A dictionary of key/value strings representing producer data.</param>
public void AddProducerOptions(IManifest manifest, IDictionary<string, string> data);
/// <summary>
/// Registers a mod data key to use to find the producer name.
/// </summary>
/// <param name="key">The mod data key to register.</param>
public void RegisterModDataKey(string key);
/// <summary>
/// Registers an Item as a producer based on its name.
/// </summary>
/// <param name="name">The name of the producer to register.</param>
/// <returns>True if the data was successfully saved.</returns>
public bool RegisterProducer(string name);
}