From 2f42051cc95f69a74e078ca8d0f9ae8ddbdbbbf0 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 4 Jul 2017 18:18:52 -0400 Subject: tweak method name per feedback (#255) --- src/StardewModdingAPI/Framework/Content/AssetInfo.cs | 4 ++-- src/StardewModdingAPI/IAssetInfo.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/StardewModdingAPI') 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 /// The content's locale code, if the content is localised. public string Locale { get; } - /// The normalised asset name being read. The format may change between platforms; see to compare with a known path. + /// The normalised asset name being read. The format may change between platforms; see to compare with a known path. public string AssetName { get; } /// The content data type. @@ -44,7 +44,7 @@ namespace StardewModdingAPI.Framework.Content /// Get whether the asset name being loaded matches a given name after normalisation. /// The expected asset path, relative to the game's content folder and without the .xnb extension or locale suffix (like 'Data\ObjectInformation'). - 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 /// The content's locale code, if the content is localised. string Locale { get; } - /// The normalised asset name being read. The format may change between platforms; see to compare with a known path. + /// The normalised asset name being read. The format may change between platforms; see to compare with a known path. string AssetName { get; } /// The content data type. @@ -23,6 +23,6 @@ namespace StardewModdingAPI *********/ /// Get whether the asset name being loaded matches a given name after normalisation. /// The expected asset path, relative to the game's content folder and without the .xnb extension or locale suffix (like 'Data\ObjectInformation'). - bool IsAssetName(string path); + bool AssetNameEquals(string path); } } -- cgit