summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/LogParsing
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-02-12 12:07:13 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-02-12 12:07:13 -0500
commitb0cc403098161ad82b858008e2523e1d2496fc41 (patch)
treea8d44ed1f1d0185ed7bdf2faec01c0b0fd9faeab /src/SMAPI.Web/Framework/LogParsing
parent4a1174cd5086ac615b9218384853a6ad2831b603 (diff)
downloadSMAPI-b0cc403098161ad82b858008e2523e1d2496fc41.tar.gz
SMAPI-b0cc403098161ad82b858008e2523e1d2496fc41.tar.bz2
SMAPI-b0cc403098161ad82b858008e2523e1d2496fc41.zip
add data-* attributes to log parser for external tools
Diffstat (limited to 'src/SMAPI.Web/Framework/LogParsing')
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
index 067e4df4..92bfe5c7 100644
--- a/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/Models/LogModInfo.cs
@@ -35,5 +35,8 @@ namespace StardewModdingAPI.Web.Framework.LogParsing.Models
/// <summary>Whether the mod has an update available.</summary>
public bool HasUpdate => this.UpdateVersion != null && this.Version != this.UpdateVersion;
+
+ /// <summary>Whether the mod is a content pack for another mod.</summary>
+ public bool IsContentPack => !string.IsNullOrWhiteSpace(this.ContentPackFor);
}
}