mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Add version numbers to mod metadata
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
namespace ZuneModCore;
|
||||
|
||||
public record ModMetadata(string Id, string Title, string Description, string Author);
|
||||
public record ModMetadata(string Id, string Title, string Description, string Author, ReleaseVersion Version);
|
||||
|
||||
@@ -15,7 +15,8 @@ public class BackgroundImageMod : Mod
|
||||
|
||||
private const string Author = "Joshua \"Yoshi\" Askharoun";
|
||||
|
||||
public override ModMetadata Metadata => new(nameof(BackgroundImageMod), "Background Image", Description, Author);
|
||||
public override ModMetadata Metadata => new(nameof(BackgroundImageMod), "Background Image",
|
||||
Description, Author, new(1, 0));
|
||||
|
||||
public override AbstractUICollection? GetDefaultOptionsUI()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,8 @@ public class FeaturesOverrideMod : Mod, IAsyncInit
|
||||
|
||||
private const string Author = "Rafael Rivera";
|
||||
|
||||
public override ModMetadata Metadata => new(nameof(FeaturesOverrideMod), "Features Override", Description, Author);
|
||||
public override ModMetadata Metadata => new(nameof(FeaturesOverrideMod), "Features Override",
|
||||
Description, Author, new(1, 0));
|
||||
|
||||
public override AbstractUICollection? GetDefaultOptionsUI()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,8 @@ public class MbidLocatorMod : Mod
|
||||
|
||||
private const string Author = "Joshua \"Yoshi\" Askharoun";
|
||||
|
||||
public override ModMetadata Metadata => new(nameof(MbidLocatorMod), "MusicBrainz ID Locator", Description, Author);
|
||||
public override ModMetadata Metadata => new(nameof(MbidLocatorMod), "MusicBrainz ID Locator",
|
||||
Description, Author, new(1, 0));
|
||||
|
||||
public override AbstractUICollection? GetDefaultOptionsUI()
|
||||
{
|
||||
|
||||
@@ -15,7 +15,8 @@ public class VideoSyncMod : Mod
|
||||
|
||||
private const string Author = "sylvathemoth";
|
||||
|
||||
public override ModMetadata Metadata => new(nameof(VideoSyncMod), "Fix Video Sync", Description, Author);
|
||||
public override ModMetadata Metadata => new(nameof(VideoSyncMod), "Fix Video Sync",
|
||||
Description, Author, new(2, 0));
|
||||
|
||||
public override async Task<string?> Apply()
|
||||
{
|
||||
|
||||
@@ -39,7 +39,8 @@ public class WebservicesMod : Mod, IAsyncInit
|
||||
|
||||
private const string Author = "Joshua \"Yoshi\" Askharoun";
|
||||
|
||||
public override ModMetadata Metadata => new(nameof(WebservicesMod), "Community Webservices", Description, Author);
|
||||
public override ModMetadata Metadata => new(nameof(WebservicesMod), "Community Webservices",
|
||||
Description, Author, new(1, 1));
|
||||
|
||||
public override AbstractUICollection? GetDefaultOptionsUI()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user