2015-01-23 12:36:43 +00:00
|
|
|
|
#region ================== Namespaces
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using CodeImp.DoomBuilder.Map;
|
|
|
|
|
using CodeImp.DoomBuilder.Rendering;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.SoundPropagationMode
|
|
|
|
|
{
|
|
|
|
|
public class SoundEnvironment
|
|
|
|
|
{
|
2015-01-25 23:22:42 +00:00
|
|
|
|
#region ================== Constants
|
|
|
|
|
|
|
|
|
|
public const string DEFAULT_NAME = "Unknown sound environment"; //mxd
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2015-01-23 12:36:43 +00:00
|
|
|
|
#region ================== Properties
|
|
|
|
|
|
|
|
|
|
public List<Sector> Sectors { get; private set; }
|
|
|
|
|
public List<Thing> Things { get; set; }
|
|
|
|
|
public List<Linedef> Linedefs { get; set; }
|
|
|
|
|
public PixelColor Color { get; set; }
|
|
|
|
|
public int ID { get; set; }
|
2015-01-25 23:22:42 +00:00
|
|
|
|
public string Name { get; set; } //mxd
|
2016-05-12 22:35:11 +00:00
|
|
|
|
public FlatVertex[] SectorsGeometry; //mxd
|
2015-01-23 12:36:43 +00:00
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public SoundEnvironment()
|
|
|
|
|
{
|
|
|
|
|
Sectors = new List<Sector>();
|
|
|
|
|
Things = new List<Thing>();
|
|
|
|
|
Linedefs = new List<Linedef>();
|
|
|
|
|
Color = General.Colors.Background;
|
|
|
|
|
ID = -1;
|
2015-01-25 23:22:42 +00:00
|
|
|
|
Name = DEFAULT_NAME; //mxd
|
2015-01-23 12:36:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|