UltimateZoneBuilder/Source/Plugins/BuilderModes/VisualModes/SectorLevel.cs
MaxED cde97f2cfe Fixed, Edit Selection: in some cases thing angles were updated incorrectly when things with "FixedRotation" game configuration property were among selected things.
Fixed, Visual mode: floor brightness was calculated incorrectly when "Disable Light Effects"/"Restrict light inside" 3d floor flags were used and the floor had "lightfloor" property.
Fixed: "lightabsolute" flag was accessed incorrectly in previous commit.
2015-02-06 21:03:20 +00:00

63 lines
1.5 KiB
C#

#region === Copyright (c) 2010 Pascal van der Heiden ===
using CodeImp.DoomBuilder.Geometry;
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Rendering;
#endregion
namespace CodeImp.DoomBuilder.BuilderModes
{
internal class SectorLevel
{
// Type of level
public SectorLevelType type;
// Sector where this level originates from
public Sector sector;
// Plane in the sector
public Plane plane;
// Alpha for translucency (255=opaque)
public int alpha;
// Color of the plane (includes brightness)
// When this is 0, it takes the color from the sector above
public int color;
// Color and brightness below the plane
// When this is 0, it takes the color from the sector above
public int brightnessbelow;
public PixelColor colorbelow;
public bool transferbrightness; //mxd
// Constructor
public SectorLevel(Sector s, SectorLevelType type)
{
this.type = type;
this.sector = s;
this.alpha = 255;
this.transferbrightness = true; //mxd
}
// Copy constructor
public SectorLevel(SectorLevel source)
{
source.CopyProperties(this);
}
// Copy properties
public void CopyProperties(SectorLevel target)
{
target.sector = this.sector;
target.type = this.type;
target.plane = this.plane;
target.alpha = this.alpha;
target.color = this.color;
target.brightnessbelow = this.brightnessbelow;
target.colorbelow = this.colorbelow;
target.transferbrightness = this.transferbrightness; //mxd
}
}
}