diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-03 01:43:02 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-04 23:49:05 -0500 |
commit | a2a0469cd024e2fd4b35503db152ba1a6df712ec (patch) | |
tree | d64da19a1413bb29425005c1ff4d200e914f73bb /src/SMAPI/Framework/DeprecationManager.cs | |
parent | 3c5bdc96b57b523fb389dda5138b57fc5801edd2 (diff) | |
download | SMAPI-a2a0469cd024e2fd4b35503db152ba1a6df712ec.tar.gz SMAPI-a2a0469cd024e2fd4b35503db152ba1a6df712ec.tar.bz2 SMAPI-a2a0469cd024e2fd4b35503db152ba1a6df712ec.zip |
deprecate old events (#606)
Diffstat (limited to 'src/SMAPI/Framework/DeprecationManager.cs')
-rw-r--r-- | src/SMAPI/Framework/DeprecationManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/DeprecationManager.cs b/src/SMAPI/Framework/DeprecationManager.cs index 0fde67ee..be564c22 100644 --- a/src/SMAPI/Framework/DeprecationManager.cs +++ b/src/SMAPI/Framework/DeprecationManager.cs @@ -35,6 +35,12 @@ namespace StardewModdingAPI.Framework this.ModRegistry = modRegistry; } + /// <summary>Log a deprecation warning for the old-style events.</summary> + public void WarnForOldEvents() + { + this.Warn("legacy events", "2.9", DeprecationLevel.Notice); + } + /// <summary>Log a deprecation warning.</summary> /// <param name="nounPhrase">A noun phrase describing what is deprecated.</param> /// <param name="version">The SMAPI version which deprecated it.</param> |