mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-02 16:42:30 +00:00
2cbe6640a6
Fixed, Visual mode: UDMF sidedef brightness should be ignored when a wall section is affected by Transfer Brightness effect. Fixed, Visual mode: any custom fog should be rendered regardless of sector brightness. Fixed, Visual mode: "fogdensity" and "outsidefogdensity" MAPINFO values were processed incorrectly. Fixed, Visual mode: in some cases Things were rendered twice during a render pass. Fixed, Visual mode: floor glow effect should affect thing brightness only when applied to floor of the sector thing is in. Fixed, TEXTURES parser: TEXTURES group was named incorrectly in the Textures Browser window when parsed from a WAD file. Fixed, MAPINFO, GLDEFS, DECORATE parsers: "//$GZDB_SKIP" special comment was processed incorrectly. Fixed, MAPINFO parser: "fogdensity" and "outsidefogdensity" properties are now initialized using GZDoom default value (255) instead of 0.
71 lines
2.9 KiB
C#
71 lines
2.9 KiB
C#
#region ================== Namespaces
|
|
|
|
using SlimDX;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.GZBuilder.Data
|
|
{
|
|
public sealed class MapInfo
|
|
{
|
|
#region ================== Variables
|
|
|
|
private bool isdefined;
|
|
|
|
private string title;
|
|
private string sky1;
|
|
private float sky1scrollspeed;
|
|
private string sky2;
|
|
private float sky2scrollspeed;
|
|
private bool doublesky;
|
|
private bool hasfadecolor;
|
|
private Color4 fadecolor;
|
|
private bool hasoutsidefogcolor;
|
|
private Color4 outsidefogcolor;
|
|
private int fogdensity;
|
|
private int outsidefogdensity;
|
|
|
|
private bool evenlighting;
|
|
private bool smoothlighting;
|
|
private int vertwallshade;
|
|
private int horizwallshade;
|
|
|
|
#endregion
|
|
|
|
#region ================== Properties
|
|
|
|
public bool IsDefined { get { return isdefined; } }
|
|
|
|
public string Title { get { return title; } internal set { title = value; isdefined = true; } }
|
|
public string Sky1 { get { return sky1; } internal set { sky1 = value; isdefined = true; } }
|
|
public float Sky1ScrollSpeed { get { return sky1scrollspeed; } internal set { sky1scrollspeed = value; isdefined = true; } }
|
|
public string Sky2 { get { return sky2; } internal set { sky2 = value; isdefined = true; } }
|
|
public float Sky2ScrollSpeed { get { return sky2scrollspeed; } internal set { sky2scrollspeed = value; isdefined = true; } }
|
|
public bool DoubleSky { get { return doublesky; } internal set { doublesky = value; isdefined = true; } }
|
|
public bool HasFadeColor { get { return hasfadecolor; } internal set { hasfadecolor = value; isdefined = true; } }
|
|
public Color4 FadeColor { get { return fadecolor; } internal set { fadecolor = value; isdefined = true; } }
|
|
public bool HasOutsideFogColor { get { return hasoutsidefogcolor; } internal set { hasoutsidefogcolor = value; isdefined = true; } }
|
|
public Color4 OutsideFogColor { get { return outsidefogcolor; } internal set { outsidefogcolor = value; isdefined = true; } }
|
|
public int FogDensity { get { return fogdensity; } internal set { fogdensity = value; isdefined = true; } }
|
|
public int OutsideFogDensity { get { return outsidefogdensity; } internal set { outsidefogdensity = value; isdefined = true; } }
|
|
|
|
public bool EvenLighting { get { return evenlighting; } internal set { evenlighting = value; isdefined = true; } }
|
|
public bool SmoothLighting { get { return smoothlighting; } internal set { smoothlighting = value; isdefined = true; } }
|
|
public int VertWallShade { get { return vertwallshade; } internal set { vertwallshade = value; isdefined = true; } }
|
|
public int HorizWallShade { get { return horizwallshade; } internal set { horizwallshade = value; isdefined = true; } }
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor
|
|
|
|
public MapInfo()
|
|
{
|
|
vertwallshade = 16;
|
|
horizwallshade = -16;
|
|
fogdensity = 255;
|
|
outsidefogdensity = 255;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|