mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-30 08:32:00 +00:00
Merged Visual mode and GZDoom Visual mode into GZDB Visual mode. GZDoomEditing.dll is no longer required.
This commit is contained in:
parent
c018e05805
commit
a3f28cfe94
71 changed files with 2614 additions and 8590 deletions
65
Source/Plugins/BuilderModes/VisualModes/SectorLevel.cs
Normal file
65
Source/Plugins/BuilderModes/VisualModes/SectorLevel.cs
Normal file
|
@ -0,0 +1,65 @@
|
|||
#region === Copyright (c) 2010 Pascal van der Heiden ===
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
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;
|
||||
|
||||
// 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.plane = this.plane;
|
||||
target.alpha = this.alpha;
|
||||
target.color = this.color;
|
||||
target.brightnessbelow = this.brightnessbelow;
|
||||
target.colorbelow = this.colorbelow;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue