2010-09-10 06:09:28 +00:00
|
|
|
|
#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.GZDoomEditing
|
|
|
|
|
{
|
|
|
|
|
internal class WallPolygon : List<Vector3D>
|
|
|
|
|
{
|
|
|
|
|
// The color that the wall should have
|
|
|
|
|
public int color;
|
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
public WallPolygon()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
public WallPolygon(int capacity) : base(capacity)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
public WallPolygon(IEnumerable<Vector3D> collection) : base(collection)
|
|
|
|
|
{
|
|
|
|
|
}
|
2010-09-10 09:08:54 +00:00
|
|
|
|
|
|
|
|
|
// This copies all the wall properties
|
|
|
|
|
public void CopyProperties(WallPolygon target)
|
|
|
|
|
{
|
|
|
|
|
target.color = this.color;
|
|
|
|
|
}
|
2010-09-10 06:09:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|