mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-30 07:31:36 +00:00
b1e5d8b5be
Added, Sound Environments mode: current sound environment is now highlighted (can be toggled using "Toggle Highlight" action). Added: Tag selectors now have up/down buttons. Fixed, Sound Environments mode: sound environments were not updated after performing Undo/Redo actions. Fixed, Sound Propagation mode: sound zones were not updated after performing Undo/Redo actions. Internal: moved "Toggle Highlight" action to the core, also changed it's category to "View". Internal: "Toggle Highlight" action state is now saved in the Program configuration. Updated ZDoom_DECORATE.cfg (GetZAt). Updated ZDoom_linedefs.cfg (Sector_SetPortal args).
41 lines
984 B
C#
41 lines
984 B
C#
#region ================== Namespaces
|
|
|
|
using System.Collections.Generic;
|
|
using CodeImp.DoomBuilder.Map;
|
|
using CodeImp.DoomBuilder.Rendering;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.SoundPropagationMode
|
|
{
|
|
public class SoundEnvironment
|
|
{
|
|
#region ================== Constants
|
|
|
|
public const string DEFAULT_NAME = "Unknown sound environment"; //mxd
|
|
|
|
#endregion
|
|
|
|
#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; }
|
|
public string Name { get; set; } //mxd
|
|
public FlatVertex[] SectorsGeometry; //mxd
|
|
|
|
#endregion
|
|
|
|
public SoundEnvironment()
|
|
{
|
|
Sectors = new List<Sector>();
|
|
Things = new List<Thing>();
|
|
Linedefs = new List<Linedef>();
|
|
Color = General.Colors.Background;
|
|
ID = -1;
|
|
Name = DEFAULT_NAME; //mxd
|
|
}
|
|
}
|
|
}
|