Refactor ModMetadata to have required properties

This commit is contained in:
Yoshi Askharoun
2025-09-03 19:48:41 -04:00
parent 4c482a949e
commit 9aec2061ff
6 changed files with 59 additions and 37 deletions
+8 -6
View File
@@ -12,12 +12,14 @@ namespace ZuneModCore.Mods;
public class BackgroundImageModFactory : DIModFactoryBase<BackgroundImageMod>
{
private const string Description = "Replaces the \"Zero\" background with an image of your choice.";
private const string Author = "Joshua \"Yoshi\" Askharoun";
public override ModMetadata Metadata => new(nameof(BackgroundImageMod), "Background Image",
Description, Author, new(1, 1));
public override ModMetadata Metadata { get; } = new()
{
Id = nameof(BackgroundImageMod),
Title = "Background Image",
Author = "Joshua \"Yoshi\" Askharoun",
Version = new(1, 1),
Description = "Replaces the \"Zero\" background with an image of your choice.",
};
}
public class BackgroundImageMod(ModMetadata metadata, IModCoreConfig modConfig) : Mod(metadata)