UltimateZoneBuilder/Source/Core/Config/RequiredArchive.cs
ZZYZX f11127ca71 Made non-existent ZScript classes a fatal error.
Added explicit warning if gzdoom.pk3 is not loaded for GZDoom game configurations.

Fixed tokenizer not picking up the very last token in the stream.
2022-08-07 21:26:22 +03:00

41 lines
1.2 KiB
C#

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
{
private string filename;
private bool excludeFromTesting;
private List<RequiredArchiveEntry> entries;
public RequiredArchive(string filename, bool excludeFromTesting, List<RequiredArchiveEntry> entries)
{
this.filename = filename;
this.excludeFromTesting = excludeFromTesting;
this.entries = entries;
}
public string FileName { get { return filename; } }
public bool ExcludeFromTesting { get { return excludeFromTesting; } }
public IReadOnlyCollection<RequiredArchiveEntry> Entries { get { return entries; } }
}
}