diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-02-12 12:07:13 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-02-12 12:07:13 -0500 |
commit | b0cc403098161ad82b858008e2523e1d2496fc41 (patch) | |
tree | a8d44ed1f1d0185ed7bdf2faec01c0b0fd9faeab /src/SMAPI.Web/Framework/LogParsing | |
parent | 4a1174cd5086ac615b9218384853a6ad2831b603 (diff) | |
download | SMAPI-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.cs | 3 |
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); } } |