Show / Hide Table of Contents

Class Zone

Defines an area for a scene.

Inheritance
object
ScreenObject
Zone
Implements
IScreenObject
IPositionable
IComponentHost
Inherited Members
ScreenObject.ComponentsUpdate
ScreenObject.ComponentsRender
ScreenObject.ComponentsMouse
ScreenObject.ComponentsKeyboard
ScreenObject.ComponentsEmpty
ScreenObject.Render(TimeSpan)
ScreenObject.Update(TimeSpan)
ScreenObject.ProcessKeyboard(Keyboard)
ScreenObject.ProcessMouse(MouseScreenObjectState)
ScreenObject.LostMouse(MouseScreenObjectState)
ScreenObject.OnFocusLost()
ScreenObject.OnFocused()
ScreenObject.OnParentChanged(IScreenObject, IScreenObject)
ScreenObject.OnPositionChanging(Point, Point)
ScreenObject.OnPositionChanged(Point, Point)
ScreenObject.OnVisibleChanged()
ScreenObject.OnEnabledChanged()
ScreenObject.UpdateAbsolutePosition()
ScreenObject.GetSadComponents<TComponent>()
ScreenObject.GetSadComponent<TComponent>()
ScreenObject.HasSadComponent<TComponent>(out TComponent)
ScreenObject.OnSadComponentAdded(IComponent)
ScreenObject.OnSadComponentRemoved(IComponent)
ScreenObject.SortComponents()
ScreenObject.Components_FilterAddItem(IComponent, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.Components_FilterRemoveItem(IComponent, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.Components_Sort(List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>, List<IComponent>)
ScreenObject.OnSerializingMethod(StreamingContext)
ScreenObject.SortOrder
ScreenObject.Children
ScreenObject.Parent
ScreenObject.Position
ScreenObject.AbsolutePosition
ScreenObject.IgnoreParentPosition
ScreenObject.IsVisible
ScreenObject.IsEnabled
ScreenObject.IsFocused
ScreenObject.FocusedMode
ScreenObject.IsExclusiveMouse
ScreenObject.UseKeyboard
ScreenObject.UseMouse
ScreenObject.SadComponents
ScreenObject.ParentChanged
ScreenObject.PositionChanged
ScreenObject.PositionChanging
ScreenObject.IsVisibleChanged
ScreenObject.IsEnabledChanged
ScreenObject.FocusLost
ScreenObject.Focused
object.GetType()
object.MemberwiseClone()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Entities
Assembly: SadConsole.Extended.dll
Syntax
[DataContract]
public class Zone : ScreenObject, IScreenObject, IPositionable, IComponentHost

Constructors

Zone(Area)

Creates a new zone object with the specified area.

Declaration
public Zone(Area area)
Parameters
Type Name Description
Area area

The area of the zone.

Zone(Rectangle)

Creates a new zone object using the positions of a rectangle.

Declaration
public Zone(Rectangle area)
Parameters
Type Name Description
Rectangle area

The area of the zone.

Zone(IEnumerable<Point>)

Creates a new zone object using the specified positions.

Declaration
public Zone(IEnumerable<Point> positions)
Parameters
Type Name Description
IEnumerable<Point> positions

The positions that make up the zone.

Fields

Area

The area the zone covers.

Declaration
[DataMember]
public readonly Area Area
Field Value
Type Description
Area

Settings

Key-value pairs for the zone.

Declaration
[DataMember]
public Dictionary<string, string> Settings
Field Value
Type Description
Dictionary<string, string>

Properties

Appearance

A visual for the area to help debug.

Declaration
[DataMember]
public ColoredGlyphBase? Appearance { get; set; }
Property Value
Type Description
ColoredGlyphBase

Entities

A list of entities in the

Declaration
public IReadOnlyList<Entity> Entities { get; }
Property Value
Type Description
IReadOnlyList<Entity>

Name

The name of the zone.

Declaration
[DataMember]
public string Name { get; set; }
Property Value
Type Description
string

Methods

ToString()

Returns the string "Zone - " followed by the Name of the zone. If the name is empty, appends the Area bounds.

Declaration
public override string ToString()
Returns
Type Description
string

The name of the zone.

Overrides
ScreenObject.ToString()

Implements

IScreenObject
IPositionable
IComponentHost

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX