namespace StardewModdingAPI.Advanced { /// Wraps a configuration file with IO methods for convenience. public interface IConfigFile { /********* ** Accessors *********/ /// Provides simplified APIs for writing mods. IModHelper ModHelper { get; set; } /// The file path from which the model was loaded, relative to the mod directory. string FilePath { get; set; } /********* ** Methods *********/ /// Reparse the underlying file and update this model. void Reload(); /// Save this model to the underlying file. void Save(); } }