2020-08-21 10:15:38 -07:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SabreTools.Library.Filtering
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ExtraIni
|
|
|
|
|
|
{
|
2020-08-21 10:38:42 -07:00
|
|
|
|
#region Fields
|
|
|
|
|
|
|
2020-08-21 10:15:38 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// List of extras to apply
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public List<ExtraIniItem> Items { get; set; } = new List<ExtraIniItem>();
|
2020-08-21 10:38:42 -07:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region Extras Population
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Populate item using field:file inputs
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="inputs">Field and file combinations</param>
|
|
|
|
|
|
public void PopulateFromList(List<string> inputs)
|
|
|
|
|
|
{
|
|
|
|
|
|
foreach (string input in inputs)
|
|
|
|
|
|
{
|
|
|
|
|
|
ExtraIniItem item = new ExtraIniItem();
|
|
|
|
|
|
item.PopulateFromInput(input);
|
|
|
|
|
|
Items.Add(item);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
2020-08-21 10:15:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|