forked from LeFauxMatt/StardewMods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIExpandedStorageApi.cs
30 lines (27 loc) · 1.19 KB
/
IExpandedStorageApi.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.ExpandedStorage;
/// <summary>
/// API for ExpandedStorage.
/// </summary>
public interface IExpandedStorageApi
{
/// <summary>
/// Loads an Expanded Storage content pack in the legacy format.
/// </summary>
/// <param name="manifest">The mod manifest.</param>
/// <param name="path">The path to the content pack.</param>
/// <returns>Returns true if the content pack could be loaded.</returns>
public bool LoadContentPack(IManifest manifest, string path);
/// <summary>
/// Loads an Expanded Storage content pack in the legacy format.
/// </summary>
/// <param name="contentPack">The content pack to load.</param>
/// <returns>Returns true if the content pack could be loaded.</returns>
public bool LoadContentPack(IContentPack contentPack);
/// <summary>
/// Registers a custom Expanded Storage chest.
/// </summary>
/// <param name="id">A unique id for the custom storage.</param>
/// <param name="storage">The custom storage to load.</param>
/// <returns>Returns true if the storage could be loaded.</returns>
public bool RegisterStorage(string id, ICustomStorage storage);
}