summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ModHelpers/ReflectionHelper.cs3
-rw-r--r--src/SMAPI/Framework/Reflection/ReflectedField.cs5
-rw-r--r--src/SMAPI/Framework/Reflection/ReflectedMethod.cs5
-rw-r--r--src/SMAPI/Framework/Reflection/ReflectedProperty.cs5
4 files changed, 14 insertions, 4 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ReflectionHelper.cs b/src/SMAPI/Framework/ModHelpers/ReflectionHelper.cs
index 81453003..e5bf47f6 100644
--- a/src/SMAPI/Framework/ModHelpers/ReflectionHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/ReflectionHelper.cs
@@ -107,7 +107,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
);
}
-
+#if !STARDEW_VALLEY_1_3
/****
** Obsolete
****/
@@ -221,6 +221,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
this.DeprecationManager.Warn($"{nameof(IReflectionHelper)}.GetPrivate*", "2.3", DeprecationLevel.Notice);
return (IPrivateMethod)this.GetMethod(type, name, required);
}
+#endif
/*********
diff --git a/src/SMAPI/Framework/Reflection/ReflectedField.cs b/src/SMAPI/Framework/Reflection/ReflectedField.cs
index ad1557bb..fb420dc5 100644
--- a/src/SMAPI/Framework/Reflection/ReflectedField.cs
+++ b/src/SMAPI/Framework/Reflection/ReflectedField.cs
@@ -5,7 +5,10 @@ namespace StardewModdingAPI.Framework.Reflection
{
/// <summary>A field obtained through reflection.</summary>
/// <typeparam name="TValue">The field value type.</typeparam>
- internal class ReflectedField<TValue> : IPrivateField<TValue>, IReflectedField<TValue>
+ internal class ReflectedField<TValue> : IReflectedField<TValue>
+#if !STARDEW_VALLEY_1_3
+ , IPrivateField<TValue>
+#endif
{
/*********
** Properties
diff --git a/src/SMAPI/Framework/Reflection/ReflectedMethod.cs b/src/SMAPI/Framework/Reflection/ReflectedMethod.cs
index 376de869..803bc316 100644
--- a/src/SMAPI/Framework/Reflection/ReflectedMethod.cs
+++ b/src/SMAPI/Framework/Reflection/ReflectedMethod.cs
@@ -4,7 +4,10 @@ using System.Reflection;
namespace StardewModdingAPI.Framework.Reflection
{
/// <summary>A method obtained through reflection.</summary>
- internal class ReflectedMethod : IPrivateMethod, IReflectedMethod
+ internal class ReflectedMethod : IReflectedMethod
+#if !STARDEW_VALLEY_1_3
+ , IPrivateMethod
+#endif
{
/*********
** Properties
diff --git a/src/SMAPI/Framework/Reflection/ReflectedProperty.cs b/src/SMAPI/Framework/Reflection/ReflectedProperty.cs
index d6c964c1..4f9d4e19 100644
--- a/src/SMAPI/Framework/Reflection/ReflectedProperty.cs
+++ b/src/SMAPI/Framework/Reflection/ReflectedProperty.cs
@@ -5,7 +5,10 @@ namespace StardewModdingAPI.Framework.Reflection
{
/// <summary>A property obtained through reflection.</summary>
/// <typeparam name="TValue">The property value type.</typeparam>
- internal class ReflectedProperty<TValue> : IPrivateProperty<TValue>, IReflectedProperty<TValue>
+ internal class ReflectedProperty<TValue> : IReflectedProperty<TValue>
+#if !STARDEW_VALLEY_1_3
+ , IPrivateProperty<TValue>
+#endif
{
/*********
** Properties