From f9aa76e41f84ff9ec70dc9bf5178f50617e45424 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 6 Nov 2016 10:30:25 -0500 Subject: use more nuanced deprecation warnings (#165) --- src/StardewModdingAPI/Framework/DeprecationLevel.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/StardewModdingAPI/Framework/DeprecationLevel.cs (limited to 'src/StardewModdingAPI/Framework/DeprecationLevel.cs') diff --git a/src/StardewModdingAPI/Framework/DeprecationLevel.cs b/src/StardewModdingAPI/Framework/DeprecationLevel.cs new file mode 100644 index 00000000..c0044053 --- /dev/null +++ b/src/StardewModdingAPI/Framework/DeprecationLevel.cs @@ -0,0 +1,15 @@ +namespace StardewModdingAPI.Framework +{ + /// Indicates how deprecated something is. + internal enum DeprecationLevel + { + /// It's deprecated but won't be removed soon. Mod authors have some time to update their mods. Deprecation warnings should be logged, but not written to the console. + Notice, + + /// Mods should no longer be using it. Deprecation messages should be debug entries in the console. + Info, + + /// The code will be removed soon. Deprecation messages should be warnings in the console. + PendingRemoval + } +} \ No newline at end of file -- cgit