mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-30 16:41:38 +00:00
Added support for 'walltexture' and 'flat' types in the TEXTURES lump
This commit is contained in:
parent
77b91f60a0
commit
feccf6a11d
7 changed files with 106 additions and 12 deletions
|
@ -265,6 +265,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
{
|
||||
Dictionary<long, ImageData> images = new Dictionary<long, ImageData>();
|
||||
ICollection<ImageData> collection;
|
||||
List<ImageData> imgset = new List<ImageData>();
|
||||
|
||||
// Error when suspended
|
||||
if(issuspended) throw new Exception("Data reader is suspended");
|
||||
|
@ -292,6 +293,19 @@ namespace CodeImp.DoomBuilder.Data
|
|||
foreach(ImageData img in images.Values)
|
||||
textureset.AddFlat(img);
|
||||
|
||||
// Load TEXTURES lump file
|
||||
imgset.Clear();
|
||||
string[] alltexturefiles = GetAllFilesWithTitle("", "TEXTURES", false);
|
||||
foreach(string texturesfile in alltexturefiles)
|
||||
{
|
||||
MemoryStream filedata = LoadFile(texturesfile);
|
||||
WADReader.LoadHighresFlats(filedata, texturesfile, ref imgset, null, images);
|
||||
filedata.Dispose();
|
||||
}
|
||||
|
||||
// Add images from TEXTURES lump file
|
||||
AddImagesToList(images, imgset);
|
||||
|
||||
return new List<ImageData>(images.Values);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue