UltimateZoneBuilder/Source/Plugins/BuilderModes/VisualModes/SectorLevel.cs

61 lines
1.4 KiB
C#
Raw Normal View History

2010-09-02 20:42:38 +00:00
#region === Copyright (c) 2010 Pascal van der Heiden ===
using CodeImp.DoomBuilder.Geometry;
2010-09-03 15:12:07 +00:00
using CodeImp.DoomBuilder.Map;
using CodeImp.DoomBuilder.Rendering;
2010-09-02 20:42:38 +00:00
#endregion
namespace CodeImp.DoomBuilder.BuilderModes
2010-09-02 20:42:38 +00:00
{
internal class SectorLevel
2010-09-02 20:42:38 +00:00
{
// Type of level
public SectorLevelType type;
2010-09-11 20:14:36 +00:00
// Sector where this level originates from
2010-09-04 14:51:35 +00:00
public Sector sector;
2010-09-02 20:42:38 +00:00
// Plane in the sector
public Plane plane;
2010-09-03 15:12:07 +00:00
2010-09-11 20:14:36 +00:00
// Alpha for translucency (255=opaque)
2010-09-10 15:59:47 +00:00
public int alpha;
2010-09-03 15:12:07 +00:00
// Color of the plane (includes brightness)
2010-09-06 06:09:22 +00:00
// When this is 0, it takes the color from the sector above
2010-09-02 20:42:38 +00:00
public int color;
2010-09-03 15:12:07 +00:00
// Color and brightness below the plane
2010-09-06 06:09:22 +00:00
// When this is 0, it takes the color from the sector above
2010-09-03 15:12:07 +00:00
public int brightnessbelow;
public PixelColor colorbelow;
// Constructor
public SectorLevel(Sector s, SectorLevelType type)
{
this.type = type;
2010-09-11 20:14:36 +00:00
this.sector = s;
2010-09-10 15:59:47 +00:00
this.alpha = 255;
2010-09-03 15:12:07 +00:00
}
2010-09-06 06:09:22 +00:00
// Copy constructor
public SectorLevel(SectorLevel source)
{
2010-09-11 20:14:36 +00:00
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;
2010-09-06 06:09:22 +00:00
}
2010-09-02 20:42:38 +00:00
}
}