Class DoorLineGrid2D
Represents a door line.
Inheritance
System.Object
DoorLineGrid2D
Implements
System.IEquatable<DoorLineGrid2D>
Namespace: Edgar.GraphBasedGenerator.Grid2D
Assembly: Edgar.dll
Syntax
public sealed class DoorLineGrid2D : ValueType, IEquatable<DoorLineGrid2D>
Remarks
The difference between this class and the DoorGrid2D class is that a single instance of this class can represent multiple instances of the DoorGrid2D class.
Constructors
DoorLineGrid2D(OrthogonalLineGrid2D, Int32, IDoorSocket)
Declaration
public DoorLineGrid2D(OrthogonalLineGrid2D line, int length, IDoorSocket doorSocket)
Parameters
Type | Name | Description |
---|---|---|
OrthogonalLineGrid2D | line | See the Line property. |
System.Int32 | length | See the Length property. |
IDoorSocket | doorSocket | See the DoorSocket property. |
Properties
DoorSocket
Door socket.
Declaration
public IDoorSocket DoorSocket { get; }
Property Value
Type | Description |
---|---|
IDoorSocket |
Length
Length of doors.
Declaration
public int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Line
Set of points where doors can start.
Declaration
public OrthogonalLineGrid2D Line { get; }
Property Value
Type | Description |
---|---|
OrthogonalLineGrid2D |
Methods
Equals(DoorLineGrid2D)
Declaration
public bool Equals(DoorLineGrid2D other)
Parameters
Type | Name | Description |
---|---|---|
DoorLineGrid2D | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.IEquatable<>