2022-08-07 18:26:22 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Config
|
|
|
|
|
{
|
|
|
|
|
class RequiredArchiveEntry
|
|
|
|
|
{
|
|
|
|
|
private string reqClass;
|
|
|
|
|
private string reqLump;
|
|
|
|
|
|
|
|
|
|
public RequiredArchiveEntry(string reqClass, string reqLump)
|
|
|
|
|
{
|
|
|
|
|
this.reqClass = reqClass;
|
|
|
|
|
this.reqLump = reqLump;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Class { get { return reqClass; } }
|
|
|
|
|
public string Lump { get { return reqLump; } }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class RequiredArchive
|
|
|
|
|
{
|
2022-09-18 17:54:53 +00:00
|
|
|
|
private string id;
|
2022-08-07 18:26:22 +00:00
|
|
|
|
private string filename;
|
|
|
|
|
private bool excludeFromTesting;
|
|
|
|
|
private List<RequiredArchiveEntry> entries;
|
|
|
|
|
|
2022-09-18 17:54:53 +00:00
|
|
|
|
public RequiredArchive(string id, string filename, bool excludeFromTesting, List<RequiredArchiveEntry> entries)
|
2022-08-07 18:26:22 +00:00
|
|
|
|
{
|
2022-09-18 17:54:53 +00:00
|
|
|
|
this.id = id;
|
2022-08-07 18:26:22 +00:00
|
|
|
|
this.filename = filename;
|
|
|
|
|
this.excludeFromTesting = excludeFromTesting;
|
|
|
|
|
this.entries = entries;
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-18 17:54:53 +00:00
|
|
|
|
public string ID { get { return id; } }
|
2022-08-07 18:26:22 +00:00
|
|
|
|
public string FileName { get { return filename; } }
|
|
|
|
|
public bool ExcludeFromTesting { get { return excludeFromTesting; } }
|
|
|
|
|
public IReadOnlyCollection<RequiredArchiveEntry> Entries { get { return entries; } }
|
|
|
|
|
}
|
|
|
|
|
}
|