mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
5fe89efc7c
Visual mode: added support for "Transfer Floor Brightness" (210) effect. Visual mode: added support for "Transfer Ceiling Brightness" (211) effect. Visual mode: changed the way thing brightness is calculated. Should be closer to GZDoom now. Sector Edit Form: you can now enter "++" or "--" into "Height Offset" input to raise or lower sectors by their height. Cosmetic fix in ZDoom_linedefs.cfg.
68 lines
1.7 KiB
C#
68 lines
1.7 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;
|
|
|
|
//mxd. Type of extralight
|
|
public LightLevelType lighttype = LightLevelType.UNKNOWN;
|
|
|
|
// 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 disablelighting; //mxd
|
|
public bool restrictlighting; //mxd
|
|
|
|
// Constructor
|
|
public SectorLevel(Sector s, SectorLevelType type)
|
|
{
|
|
this.type = type;
|
|
this.sector = s;
|
|
this.alpha = 255;
|
|
}
|
|
|
|
// 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.lighttype = this.lighttype; //mxd
|
|
target.plane = this.plane;
|
|
target.alpha = this.alpha;
|
|
target.color = this.color;
|
|
target.brightnessbelow = this.brightnessbelow;
|
|
target.colorbelow = this.colorbelow;
|
|
target.disablelighting = this.disablelighting; //mxd
|
|
target.restrictlighting = this.restrictlighting; //mxd
|
|
}
|
|
}
|
|
}
|