diff options
Diffstat (limited to 'src/SMAPI/IAssetInfo.cs')
-rw-r--r-- | src/SMAPI/IAssetInfo.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SMAPI/IAssetInfo.cs b/src/SMAPI/IAssetInfo.cs index 6cdf01ee..6ac8358d 100644 --- a/src/SMAPI/IAssetInfo.cs +++ b/src/SMAPI/IAssetInfo.cs @@ -11,7 +11,11 @@ namespace StardewModdingAPI /// <summary>The content's locale code, if the content is localized.</summary> string Locale { get; } + /// <summary>The asset name being read.</summary> + public IAssetName Name { get; } + /// <summary>The normalized asset name being read. The format may change between platforms; see <see cref="AssetNameEquals"/> to compare with a known path.</summary> + [Obsolete($"Use {nameof(Name)} instead.")] string AssetName { get; } /// <summary>The content data type.</summary> @@ -23,6 +27,7 @@ namespace StardewModdingAPI *********/ /// <summary>Get whether the asset name being loaded matches a given name after normalization.</summary> /// <param name="path">The expected asset path, relative to the game's content folder and without the .xnb extension or locale suffix (like 'Data\ObjectInformation').</param> + [Obsolete($"Use {nameof(Name)}.{nameof(IAssetName.IsEquivalentTo)} instead.")] bool AssetNameEquals(string path); } } |