namespace StardewModdingAPI.Toolkit.Utilities.PathLookups
{
/// An API for relative path lookups within a root directory with minimal preprocessing.
internal class MinimalPathLookup : IFilePathLookup
{
/*********
** Accessors
*********/
/// A singleton instance for reuse.
public static readonly MinimalPathLookup Instance = new();
/*********
** Public methods
*********/
///
public string GetFilePath(string relativePath)
{
return PathUtilities.NormalizePath(relativePath);
}
///
public string GetAssetName(string relativePath)
{
return PathUtilities.NormalizeAssetName(relativePath);
}
///
public void Add(string relativePath) { }
}
}