summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-19 19:03:47 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-19 19:03:47 -0400
commit889004f1eba31aa3a5069e1dcbe79896d05720b0 (patch)
treefc46c956d6ab8ec3fab9d914f6351c14662e2f71
parenta8a4d314dff1f80970090e9d364f36e787df73d6 (diff)
downloadSMAPI-889004f1eba31aa3a5069e1dcbe79896d05720b0.tar.gz
SMAPI-889004f1eba31aa3a5069e1dcbe79896d05720b0.tar.bz2
SMAPI-889004f1eba31aa3a5069e1dcbe79896d05720b0.zip
move deprecation code into namespace
-rw-r--r--src/SMAPI/Constants.cs1
-rw-r--r--src/SMAPI/Framework/Content/AssetInfo.cs1
-rw-r--r--src/SMAPI/Framework/ContentManagers/GameContentManager.cs1
-rw-r--r--src/SMAPI/Framework/Deprecations/DeprecationLevel.cs (renamed from src/SMAPI/Framework/DeprecationLevel.cs)2
-rw-r--r--src/SMAPI/Framework/Deprecations/DeprecationManager.cs (renamed from src/SMAPI/Framework/DeprecationManager.cs)2
-rw-r--r--src/SMAPI/Framework/Deprecations/DeprecationWarning.cs (renamed from src/SMAPI/Framework/DeprecationWarning.cs)2
-rw-r--r--src/SMAPI/Framework/ModHelpers/CommandHelper.cs1
-rw-r--r--src/SMAPI/Framework/ModHelpers/ContentHelper.cs1
-rw-r--r--src/SMAPI/Framework/ModHelpers/ModHelper.cs1
-rw-r--r--src/SMAPI/Framework/SCore.cs1
-rw-r--r--src/SMAPI/Utilities/PerScreen.cs1
11 files changed, 11 insertions, 3 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index d40b97f4..ddb08435 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -6,6 +6,7 @@ using System.Reflection;
using Mono.Cecil;
using StardewModdingAPI.Enums;
using StardewModdingAPI.Framework;
+using StardewModdingAPI.Framework.Deprecations;
using StardewModdingAPI.Framework.ModLoading;
using StardewModdingAPI.Toolkit.Framework;
using StardewModdingAPI.Toolkit.Utilities;
diff --git a/src/SMAPI/Framework/Content/AssetInfo.cs b/src/SMAPI/Framework/Content/AssetInfo.cs
index 16b71487..c632249d 100644
--- a/src/SMAPI/Framework/Content/AssetInfo.cs
+++ b/src/SMAPI/Framework/Content/AssetInfo.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
+using StardewModdingAPI.Framework.Deprecations;
namespace StardewModdingAPI.Framework.Content
{
diff --git a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
index 6469fea4..083df454 100644
--- a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
@@ -8,6 +8,7 @@ using System.Reflection;
using Microsoft.Xna.Framework.Graphics;
using StardewModdingAPI.Events;
using StardewModdingAPI.Framework.Content;
+using StardewModdingAPI.Framework.Deprecations;
using StardewModdingAPI.Framework.Reflection;
using StardewModdingAPI.Framework.Utilities;
using StardewModdingAPI.Internal;
diff --git a/src/SMAPI/Framework/DeprecationLevel.cs b/src/SMAPI/Framework/Deprecations/DeprecationLevel.cs
index 12b50952..8b15b59a 100644
--- a/src/SMAPI/Framework/DeprecationLevel.cs
+++ b/src/SMAPI/Framework/Deprecations/DeprecationLevel.cs
@@ -1,4 +1,4 @@
-namespace StardewModdingAPI.Framework
+namespace StardewModdingAPI.Framework.Deprecations
{
/// <summary>Indicates how deprecated something is.</summary>
internal enum DeprecationLevel
diff --git a/src/SMAPI/Framework/DeprecationManager.cs b/src/SMAPI/Framework/Deprecations/DeprecationManager.cs
index 37a5c8ef..da17ce7e 100644
--- a/src/SMAPI/Framework/DeprecationManager.cs
+++ b/src/SMAPI/Framework/Deprecations/DeprecationManager.cs
@@ -4,7 +4,7 @@ using System.Diagnostics;
using System.Linq;
using System.Text;
-namespace StardewModdingAPI.Framework
+namespace StardewModdingAPI.Framework.Deprecations
{
/// <summary>Manages deprecation warnings.</summary>
internal class DeprecationManager
diff --git a/src/SMAPI/Framework/DeprecationWarning.cs b/src/SMAPI/Framework/Deprecations/DeprecationWarning.cs
index 1e83f679..38062daf 100644
--- a/src/SMAPI/Framework/DeprecationWarning.cs
+++ b/src/SMAPI/Framework/Deprecations/DeprecationWarning.cs
@@ -1,6 +1,6 @@
using System.Diagnostics;
-namespace StardewModdingAPI.Framework
+namespace StardewModdingAPI.Framework.Deprecations
{
/// <summary>A deprecation warning for a mod.</summary>
internal class DeprecationWarning
diff --git a/src/SMAPI/Framework/ModHelpers/CommandHelper.cs b/src/SMAPI/Framework/ModHelpers/CommandHelper.cs
index e430fb1c..226a8d69 100644
--- a/src/SMAPI/Framework/ModHelpers/CommandHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/CommandHelper.cs
@@ -1,4 +1,5 @@
using System;
+using StardewModdingAPI.Framework.Deprecations;
namespace StardewModdingAPI.Framework.ModHelpers
{
diff --git a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
index 534ac138..94a30bf1 100644
--- a/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/ContentHelper.cs
@@ -7,6 +7,7 @@ using System.IO;
using System.Linq;
using StardewModdingAPI.Framework.Content;
using StardewModdingAPI.Framework.ContentManagers;
+using StardewModdingAPI.Framework.Deprecations;
using StardewModdingAPI.Framework.Exceptions;
using StardewModdingAPI.Framework.Reflection;
using StardewValley;
diff --git a/src/SMAPI/Framework/ModHelpers/ModHelper.cs b/src/SMAPI/Framework/ModHelpers/ModHelper.cs
index 5b450c36..a23a9beb 100644
--- a/src/SMAPI/Framework/ModHelpers/ModHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/ModHelper.cs
@@ -1,6 +1,7 @@
using System;
using System.IO;
using StardewModdingAPI.Events;
+using StardewModdingAPI.Framework.Deprecations;
using StardewModdingAPI.Framework.Input;
namespace StardewModdingAPI.Framework.ModHelpers
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 44853627..c208788a 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -20,6 +20,7 @@ using StardewModdingAPI.Enums;
using StardewModdingAPI.Events;
using StardewModdingAPI.Framework.Content;
using StardewModdingAPI.Framework.ContentManagers;
+using StardewModdingAPI.Framework.Deprecations;
using StardewModdingAPI.Framework.Events;
using StardewModdingAPI.Framework.Exceptions;
using StardewModdingAPI.Framework.Input;
diff --git a/src/SMAPI/Utilities/PerScreen.cs b/src/SMAPI/Utilities/PerScreen.cs
index 6c2e436b..1c4c56fe 100644
--- a/src/SMAPI/Utilities/PerScreen.cs
+++ b/src/SMAPI/Utilities/PerScreen.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using StardewModdingAPI.Framework;
+using StardewModdingAPI.Framework.Deprecations;
namespace StardewModdingAPI.Utilities
{