Class LayoutDoorGrid2D<TRoom>
Represents a door between two rooms in the final layout.
Inheritance
System.Object
LayoutDoorGrid2D<TRoom>
Namespace: Edgar.GraphBasedGenerator.Grid2D
Assembly: Edgar.dll
Syntax
public class LayoutDoorGrid2D<TRoom> : Object
Type Parameters
| Name | Description |
|---|---|
| TRoom |
Constructors
LayoutDoorGrid2D(TRoom, TRoom, OrthogonalLineGrid2D)
Declaration
public LayoutDoorGrid2D(TRoom fromRoom, TRoom toRoom, OrthogonalLineGrid2D doorLine)
Parameters
| Type | Name | Description |
|---|---|---|
| TRoom | fromRoom | See the FromRoom property. |
| TRoom | toRoom | See the ToRoom property. |
| OrthogonalLineGrid2D | doorLine | See the DoorLine property. |
Properties
DoorLine
Line containing all the door points.
Declaration
public OrthogonalLineGrid2D DoorLine { get; }
Property Value
| Type | Description |
|---|---|
| OrthogonalLineGrid2D |
Remarks
This lines is in the local space of the room. To get the world position, the position of the FromRoom must be added to the line.
FromRoom
Room on one side of the door.
Declaration
public TRoom FromRoom { get; }
Property Value
| Type | Description |
|---|---|
| TRoom |
ToRoom
Room on the other side of the door.
Declaration
public TRoom ToRoom { get; }
Property Value
| Type | Description |
|---|---|
| TRoom |