diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-25 01:54:57 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-02-25 01:54:57 -0500 |
commit | 833d98f49136325edfc4463097710cf2391dd5b2 (patch) | |
tree | 2dfc969c6e27e78b05deb1e59201ded5392b7dc7 /src/SMAPI/Framework/Content/AssetDataForDictionary.cs | |
parent | 6fc1bf47136a620b3d270af6307426080b7d1ab2 (diff) | |
parent | 51118337e5e8cbb6803ffee4e7c0b411aba2b3e0 (diff) | |
download | SMAPI-833d98f49136325edfc4463097710cf2391dd5b2.tar.gz SMAPI-833d98f49136325edfc4463097710cf2391dd5b2.tar.bz2 SMAPI-833d98f49136325edfc4463097710cf2391dd5b2.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetDataForDictionary.cs')
-rw-r--r-- | src/SMAPI/Framework/Content/AssetDataForDictionary.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForDictionary.cs b/src/SMAPI/Framework/Content/AssetDataForDictionary.cs index e9b29b12..7b80875f 100644 --- a/src/SMAPI/Framework/Content/AssetDataForDictionary.cs +++ b/src/SMAPI/Framework/Content/AssetDataForDictionary.cs @@ -15,8 +15,9 @@ namespace StardewModdingAPI.Framework.Content /// <param name="assetName">The normalised asset name being read.</param> /// <param name="data">The content data being read.</param> /// <param name="getNormalisedPath">Normalises an asset key to match the cache key.</param> - public AssetDataForDictionary(string locale, string assetName, IDictionary<TKey, TValue> data, Func<string, string> getNormalisedPath) - : base(locale, assetName, data, getNormalisedPath) { } + /// <param name="onDataReplaced">A callback to invoke when the data is replaced (if any).</param> + public AssetDataForDictionary(string locale, string assetName, IDictionary<TKey, TValue> data, Func<string, string> getNormalisedPath, Action<IDictionary<TKey, TValue>> onDataReplaced) + : base(locale, assetName, data, getNormalisedPath, onDataReplaced) { } /// <summary>Add or replace an entry in the dictionary.</summary> /// <param name="key">The entry key.</param> |