mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
Added GZDoom's glowing flats (http://www.zdoom.org/wiki/GLDEFS#Glowing_flats) support to Classic and Visual modes.
MAPINFO: added "DoomEdNum" and "SpawnNums" blocks support. MAPINFO: added "#include" directive support. MAPINFO: added "$gzdb_skip" special comment support. DECORATE: "spawnthing" Game Configuration block is now updated using "SpawnID" actor property. Game configurations: added "class" property to the most of ZDoom things. Actions: removed "Reload MAPINFO" action. Documentation: merged "GLDEFS and MODELDEF support", "(Z)MAPINFO support" and "TEXTURES support" topics into "(G)ZDoom text lumps support", added info about the other text lumps GZDB can use.
This commit is contained in:
parent
56f9ad8469
commit
76559ae881
52 changed files with 1666 additions and 742 deletions
|
@ -475,7 +475,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
|
||||
foreach (string s in files)
|
||||
{
|
||||
if (s.ToLowerInvariant().IndexOf("modeldef") != -1)
|
||||
if (Path.GetFileNameWithoutExtension(s).ToUpperInvariant().StartsWith("MODELDEF"))
|
||||
streams.Add(s, LoadFile(s));
|
||||
}
|
||||
|
||||
|
@ -567,10 +567,10 @@ namespace CodeImp.DoomBuilder.Data
|
|||
//try to load game specific GLDEFS first
|
||||
if (gametype != GameType.UNKNOWN)
|
||||
{
|
||||
string lumpname = Gldefs.GLDEFS_LUMPS_PER_GAME[(int)gametype].ToLowerInvariant();
|
||||
string lumpname = Gldefs.GLDEFS_LUMPS_PER_GAME[(int)gametype];
|
||||
foreach (string s in files)
|
||||
{
|
||||
if (s.ToLowerInvariant().IndexOf(lumpname) != -1)
|
||||
if(Path.GetFileNameWithoutExtension(s).ToUpperInvariant() == lumpname)
|
||||
streams.Add(s, LoadFile(s));
|
||||
}
|
||||
}
|
||||
|
@ -578,25 +578,13 @@ namespace CodeImp.DoomBuilder.Data
|
|||
// Can be several entries
|
||||
foreach (string s in files)
|
||||
{
|
||||
if(s.ToLowerInvariant().IndexOf("gldefs") != -1)
|
||||
if(Path.GetFileNameWithoutExtension(s).ToUpperInvariant().StartsWith("GLDEFS"))
|
||||
streams.Add(s, LoadFile(s));
|
||||
}
|
||||
|
||||
return streams;
|
||||
}
|
||||
|
||||
//mxd
|
||||
public override Dictionary<string, Stream> GetGldefsData(string location)
|
||||
{
|
||||
// Error when suspended
|
||||
if (issuspended) throw new Exception("Data reader is suspended");
|
||||
|
||||
Dictionary<string, Stream> streams = new Dictionary<string, Stream>(StringComparer.Ordinal);
|
||||
Stream s = LoadFile(location);
|
||||
if (s != null) streams.Add(location, s);
|
||||
return streams;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Reverbs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue