summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-06-30 01:38:45 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-13 16:00:01 -0400
commitaa154319669a130c2b419540aaf5e9a5baa6db97 (patch)
tree224de5629a4f8883acc195e50d22c1c0097a6bb3 /src
parent01221ea66f2eef7ffd5ae846d1f9b99249674080 (diff)
downloadSMAPI-aa154319669a130c2b419540aaf5e9a5baa6db97.tar.gz
SMAPI-aa154319669a130c2b419540aaf5e9a5baa6db97.tar.bz2
SMAPI-aa154319669a130c2b419540aaf5e9a5baa6db97.zip
remove 'SMAPI 3.0 ready' API fields (#638)
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Web/ViewModels/ModModel.cs8
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs11
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs6
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs6
-rw-r--r--src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs18
5 files changed, 0 insertions, 49 deletions
diff --git a/src/SMAPI.Web/ViewModels/ModModel.cs b/src/SMAPI.Web/ViewModels/ModModel.cs
index ae81acf5..8668f67b 100644
--- a/src/SMAPI.Web/ViewModels/ModModel.cs
+++ b/src/SMAPI.Web/ViewModels/ModModel.cs
@@ -31,12 +31,6 @@ namespace StardewModdingAPI.Web.ViewModels
/// <summary>The compatibility status for the beta version of the game.</summary>
public ModCompatibilityModel BetaCompatibility { get; set; }
- /// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary>
- public string Smapi3Status { get; set; }
-
- /// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary>
- public string Smapi3Url { get; set; }
-
/// <summary>Links to the available mod pages.</summary>
public ModLinkModel[] ModPages { get; set; }
@@ -65,8 +59,6 @@ namespace StardewModdingAPI.Web.ViewModels
this.SourceUrl = this.GetSourceUrl(entry);
this.Compatibility = new ModCompatibilityModel(entry.Compatibility);
this.BetaCompatibility = entry.BetaCompatibility != null ? new ModCompatibilityModel(entry.BetaCompatibility) : null;
- this.Smapi3Status = entry.Smapi3Status.ToString().ToLower();
- this.Smapi3Url = entry.Smapi3Url;
this.ModPages = this.GetModPageUrls(entry).ToArray();
this.Warnings = entry.Warnings;
this.Slug = entry.Anchor;
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
index 45b46ea6..f8272ef7 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/WebApi/ModExtendedMetadataModel.cs
@@ -40,14 +40,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
/// <summary>The custom mod page URL (if applicable).</summary>
public string CustomUrl { get; set; }
- /****
- ** SMAPI 3.0 readiness
- ****/
- /// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary>
- public WikiSmapi3Status Smapi3Status { get; set; }
-
- /// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary>
- public string Smapi3Url { get; set; }
/****
** Stable compatibility
@@ -94,9 +86,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
this.CustomSourceUrl = wiki.CustomSourceUrl;
this.CustomUrl = wiki.CustomUrl;
- this.Smapi3Status = wiki.Smapi3Status;
- this.Smapi3Url = wiki.Smapi3Url;
-
this.CompatibilityStatus = wiki.Compatibility.Status;
this.CompatibilitySummary = wiki.Compatibility.Summary;
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
index ac279d88..3e9b8ea6 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiClient.cs
@@ -127,10 +127,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
}
}
- // parse SMAPI 3.0 readiness status
- WikiSmapi3Status smapi3Status = this.GetAttributeAsEnum<WikiSmapi3Status>(node, "data-smapi-3-status") ?? WikiSmapi3Status.Unknown;
- string smapi3Url = this.GetAttribute(node, "data-smapi-3-url");
-
// yield model
yield return new WikiModEntry
{
@@ -146,8 +142,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
ContentPackFor = contentPackFor,
Compatibility = compatibility,
BetaCompatibility = betaCompatibility,
- Smapi3Status = smapi3Status,
- Smapi3Url = smapi3Url,
Warnings = warnings,
Anchor = anchor
};
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs
index 35d43758..cf416cc6 100644
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs
+++ b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiModEntry.cs
@@ -42,12 +42,6 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
/// <summary>The mod's compatibility with the latest beta version of the game (if any).</summary>
public WikiCompatibilityInfo BetaCompatibility { get; set; }
- /// <summary>Whether the mod is ready for the upcoming SMAPI 3.0.</summary>
- public WikiSmapi3Status Smapi3Status { get; set; }
-
- /// <summary>A URL related to the <see cref="Smapi3Status"/>.</summary>
- public string Smapi3Url { get; set; }
-
/// <summary>Whether a Stardew Valley or SMAPI beta which affects mod compatibility is in progress. If this is true, <see cref="BetaCompatibility"/> should be used for beta versions of SMAPI instead of <see cref="Compatibility"/>.</summary>
public bool HasBetaInfo => this.BetaCompatibility != null;
diff --git a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs b/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs
deleted file mode 100644
index 879cfd8a..00000000
--- a/src/StardewModdingAPI.Toolkit/Framework/Clients/Wiki/WikiSmapi3Status.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace StardewModdingAPI.Toolkit.Framework.Clients.Wiki
-{
- /// <summary>Whether a mod is ready for the upcoming SMAPI 3.0.</summary>
- public enum WikiSmapi3Status
- {
- /// <summary>The mod's compatibility status is unknown.</summary>
- Unknown = 0,
-
- /// <summary>The mod is compatible with the upcoming SMAPI 3.0.</summary>
- Ok = 1,
-
- /// <summary>The mod will break in SMAPI 3.0.</summary>
- Broken = 2,
-
- /// <summary>The mod has a pull request submitted for SMAPI 3.0 compatibility.</summary>
- Soon = 3
- }
-}