blob: 78fd44a62163a5c7d8d62f97d85dd0aa44298462 (
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
|
namespace StardewModdingAPI.Advanced
{
/// <summary>Wraps a configuration file with IO methods for convenience.</summary>
public interface IConfigFile
{
/*********
** Accessors
*********/
/// <summary>Provides methods for interacting with the mod directory, including read/writing the config file.</summary>
ModHelper ModHelper { get; set; }
/// <summary>The file path from which the model was loaded, relative to the mod directory.</summary>
string FilePath { get; set; }
/*********
** Methods
*********/
/// <summary>Reparse the underlying file and update this model.</summary>
void Reload();
/// <summary>Save this model to the underlying file.</summary>
void Save();
}
}
|