summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-04 18:18:52 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-04 18:18:52 -0400
commit2f42051cc95f69a74e078ca8d0f9ae8ddbdbbbf0 (patch)
tree00cc6c696bc04d117f23d2f971f99a34c2e26ae9 /src
parent5ad74396fc882d73327fac0d718adf3a2d731efa (diff)
downloadSMAPI-2f42051cc95f69a74e078ca8d0f9ae8ddbdbbbf0.tar.gz
SMAPI-2f42051cc95f69a74e078ca8d0f9ae8ddbdbbbf0.tar.bz2
SMAPI-2f42051cc95f69a74e078ca8d0f9ae8ddbdbbbf0.zip
tweak method name per feedback (#255)
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI/Framework/Content/AssetInfo.cs4
-rw-r--r--src/StardewModdingAPI/IAssetInfo.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/Framework/Content/AssetInfo.cs b/src/StardewModdingAPI/Framework/Content/AssetInfo.cs
index 08bc3a03..d580dc06 100644
--- a/src/StardewModdingAPI/Framework/Content/AssetInfo.cs
+++ b/src/StardewModdingAPI/Framework/Content/AssetInfo.cs
@@ -19,7 +19,7 @@ namespace StardewModdingAPI.Framework.Content
/// <summary>The content's locale code, if the content is localised.</summary>
public string Locale { get; }
- /// <summary>The normalised asset name being read. The format may change between platforms; see <see cref="IsAssetName"/> to compare with a known path.</summary>
+ /// <summary>The normalised asset name being read. The format may change between platforms; see <see cref="AssetNameEquals"/> to compare with a known path.</summary>
public string AssetName { get; }
/// <summary>The content data type.</summary>
@@ -44,7 +44,7 @@ namespace StardewModdingAPI.Framework.Content
/// <summary>Get whether the asset name being loaded matches a given name after normalisation.</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>
- public bool IsAssetName(string path)
+ public bool AssetNameEquals(string path)
{
path = this.GetNormalisedPath(path);
return this.AssetName.Equals(path, StringComparison.InvariantCultureIgnoreCase);
diff --git a/src/StardewModdingAPI/IAssetInfo.cs b/src/StardewModdingAPI/IAssetInfo.cs
index dc65a750..5dd58e2e 100644
--- a/src/StardewModdingAPI/IAssetInfo.cs
+++ b/src/StardewModdingAPI/IAssetInfo.cs
@@ -11,7 +11,7 @@ namespace StardewModdingAPI
/// <summary>The content's locale code, if the content is localised.</summary>
string Locale { get; }
- /// <summary>The normalised asset name being read. The format may change between platforms; see <see cref="IsAssetName"/> to compare with a known path.</summary>
+ /// <summary>The normalised asset name being read. The format may change between platforms; see <see cref="AssetNameEquals"/> to compare with a known path.</summary>
string AssetName { get; }
/// <summary>The content data type.</summary>
@@ -23,6 +23,6 @@ namespace StardewModdingAPI
*********/
/// <summary>Get whether the asset name being loaded matches a given name after normalisation.</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>
- bool IsAssetName(string path);
+ bool AssetNameEquals(string path);
}
}