Zone Class
Definition
Section titled “Definition”Defines an area for a scene.
[DataContract]public class Zone : ScreenObject, IScreenObject, IPositionable, IComponentHostInheritance object → ScreenObject
Implements IScreenObject, SadRogue.Primitives.IPositionable, IComponentHost
Constructors
Section titled “Constructors”Zone(Area)
Section titled “Zone(Area)”Creates a new zone object with the specified area.
public Zone(Area area)Parameters
Section titled “Parameters”area SadRogue.Primitives.Area
The area of the zone.
Zone(Rectangle)
Section titled “Zone(Rectangle)”Creates a new zone object using the positions of a rectangle.
public Zone(Rectangle area)Parameters
Section titled “Parameters”area SadRogue.Primitives.Rectangle
The area of the zone.
Zone(IEnumerable<Point>)
Section titled “Zone(IEnumerable<Point>)”Creates a new zone object using the specified positions.
public Zone(IEnumerable<Point> positions)Parameters
Section titled “Parameters”positions IEnumerable<Point>
The positions that make up the zone.
Fields
Section titled “Fields”The area the zone covers.
[DataMember]public readonly Area AreaSettings
Section titled “Settings”Key-value pairs for the zone.
[DataMember]public Dictionary<string, string> SettingsProperties
Section titled “Properties”Appearance
Section titled “Appearance”A visual for the area to help debug.
[DataMember]public ColoredGlyphBase? Appearance { get; set; }The name of the zone.
[DataMember]public string Name { get; set; }Entities
Section titled “Entities”A list of entities in the
public IReadOnlyList<Entity> Entities { get; }Methods
Section titled “Methods”ToString()
Section titled “ToString()”Returns the string “Zone - ” followed by the Name of the zone. If the name is empty, appends the Area bounds.
public override string ToString()Returns
Section titled “Returns”string
The name of the zone.