blob: 0c734432c86e114012cddd64274b8082390b4d44 (
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
|
using System.Collections.Generic;
namespace StardewModdingAPI
{
/// <summary>Provides an API for managing content packs.</summary>
public interface IContentPackHelper : IModLinked
{
/*********
** Public methods
*********/
/// <summary>Get all content packs loaded for this mod.</summary>
IEnumerable<IContentPack> GetOwned();
/// <summary>Create a temporary content pack to read files from a directory. Temporary content packs will not appear in the SMAPI log and update checks will not be performed.</summary>
/// <param name="directoryPath">The absolute directory path containing the content pack files.</param>
IContentPack CreateFake(string directoryPath);
/// <summary>Create a temporary content pack to read files from a directory. Temporary content packs will not appear in the SMAPI log and update checks will not be performed.</summary>
/// <param name="directoryPath">The absolute directory path containing the content pack files.</param>
/// <param name="id">The content pack's unique ID.</param>
/// <param name="name">The content pack name.</param>
/// <param name="description">The content pack description.</param>
/// <param name="author">The content pack author's name.</param>
/// <param name="version">The content pack version.</param>
IContentPack CreateFake(string directoryPath, string id, string name, string description, string author, ISemanticVersion version);
}
}
|