summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-16 16:14:41 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-16 16:14:41 -0400
commit9d3e37317893126a9e0598f8f850abd23cad36c7 (patch)
treedfb595fb444b49bcbdc019a2d9b6530d6c5463af /src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs
parent28986e76b81fe4505574e4fada3d86ffa457f085 (diff)
downloadSMAPI-9d3e37317893126a9e0598f8f850abd23cad36c7.tar.gz
SMAPI-9d3e37317893126a9e0598f8f850abd23cad36c7.tar.bz2
SMAPI-9d3e37317893126a9e0598f8f850abd23cad36c7.zip
update for Stardew Valley 1.3.11 (#521)
Diffstat (limited to 'src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs')
-rw-r--r--src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs b/src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs
index a4982faa..4f1ac9f4 100644
--- a/src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs
+++ b/src/SMAPI/Framework/StateTracking/FieldWatchers/WatcherFactory.cs
@@ -38,6 +38,15 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers
/// <summary>Get a watcher for a net collection.</summary>
/// <typeparam name="T">The value type.</typeparam>
+ /// <typeparam name="TSelf">The net field instance type.</typeparam>
+ /// <param name="field">The net collection.</param>
+ public static NetValueWatcher<T, TSelf> ForNetValue<T, TSelf>(NetFieldBase<T, TSelf> field) where TSelf : NetFieldBase<T, TSelf>
+ {
+ return new NetValueWatcher<T, TSelf>(field);
+ }
+
+ /// <summary>Get a watcher for a net collection.</summary>
+ /// <typeparam name="T">The value type.</typeparam>
/// <param name="collection">The net collection.</param>
public static NetCollectionWatcher<T> ForNetCollection<T>(NetCollection<T> collection) where T : INetObject<INetSerializable>
{