using System;
namespace StardewModdingAPI
{
/// Basic metadata for a content asset.
public interface IAssetInfo
{
/*********
** Accessors
*********/
/// The content's locale code, if the content is localized.
string Locale { get; }
/// The asset name being read.
public IAssetName Name { get; }
/// The normalized asset name being read. The format may change between platforms; see to compare with a known path.
[Obsolete($"Use {nameof(Name)} instead.")]
string AssetName { get; }
/// The content data type.
Type DataType { get; }
/*********
** Public methods
*********/
/// Get whether the asset name being loaded matches a given name after normalization.
/// The expected asset path, relative to the game's content folder and without the .xnb extension or locale suffix (like 'Data\ObjectInformation').
[Obsolete($"Use {nameof(Name)}.{nameof(IAssetName.IsEquivalentTo)} instead.")]
bool AssetNameEquals(string path);
}
}