add install options (WIP)

This commit is contained in:
2025-06-16 15:34:15 +02:00
parent c1616fecf0
commit 0aa6ed98c6
3 changed files with 25 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ public class InstallInfos : IActionSetInfos
public List<InstallAction> Actions { get; } = []; public List<InstallAction> Actions { get; } = [];
public List<InstallOptionSet> OptionSets { get; } = [];
IEnumerable<InstallAction> IActionSetInfos.Actions => Actions; IEnumerable<InstallAction> IActionSetInfos.Actions => Actions;
public static InstallInfos Parse(string content) public static InstallInfos Parse(string content)

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ModpackUpdater;
public class InstallOption
{
public string Id { get; set; }
public List<InstallAction> InstallActions { get; } = [];
public List<UpdateAction> UninstallActions { get; } = [];
}

View File

@@ -0,0 +1,9 @@
namespace ModpackUpdater;
public class InstallOptionSet
{
public string Id { get; set; }
public bool Multiselect { get; set; }
public string DefaultValue { get; set; }
public List<InstallOption> Options { get; } = [];
}