add install options (WIP)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
14
ModpackUpdater/InstallOption.cs
Normal file
14
ModpackUpdater/InstallOption.cs
Normal 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; } = [];
|
||||||
|
}
|
||||||
9
ModpackUpdater/InstallOptionSet.cs
Normal file
9
ModpackUpdater/InstallOptionSet.cs
Normal 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; } = [];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user