Class Room<TNode>
Represents a layout room.
Inheritance
System.Object
Room<TNode>
Namespace: Edgar.Legacy.Core.MapLayouts
Assembly: Edgar.dll
Syntax
public class Room<TNode> : Object
Type Parameters
Name | Description |
---|---|
TNode |
Constructors
Room(TNode, PolygonGrid2D, Vector2Int, Boolean, RoomTemplate, IRoomDescription, TransformationGrid2D, List<TransformationGrid2D>, RoomTemplateInstance)
Declaration
public Room(TNode node, PolygonGrid2D shape, Vector2Int position, bool isCorridor, RoomTemplate roomTemplate, IRoomDescription roomDescription, TransformationGrid2D transformation, List<TransformationGrid2D> transformations, RoomTemplateInstance roomTemplateInstance)
Parameters
Type | Name | Description |
---|---|---|
TNode | node | |
PolygonGrid2D | shape | |
Vector2Int | position | |
System.Boolean | isCorridor | |
RoomTemplate | roomTemplate | |
IRoomDescription | roomDescription | |
TransformationGrid2D | transformation | |
System.Collections.Generic.List<TransformationGrid2D> | transformations | |
RoomTemplateInstance | roomTemplateInstance |
Properties
Doors
Information about connections to neighbours.
Declaration
public List<LayoutDoorGrid2D<TNode>> Doors { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<LayoutDoorGrid2D<TNode>> |
IsCorridor
Whether it is a corridor room or not.
Declaration
public bool IsCorridor { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Node
Corresponding input graph node.
Declaration
public TNode Node { get; }
Property Value
Type | Description |
---|---|
TNode |
Position
Position of the room.
Declaration
public Vector2Int Position { get; }
Property Value
Type | Description |
---|---|
Vector2Int |
RoomDescription
Room description.
Declaration
public IRoomDescription RoomDescription { get; }
Property Value
Type | Description |
---|---|
IRoomDescription |
RoomTemplate
Room template used for this room.
Declaration
public RoomTemplate RoomTemplate { get; }
Property Value
Type | Description |
---|---|
RoomTemplate |
RoomTemplateInstance
Room template instance used for this room.
Declaration
public RoomTemplateInstance RoomTemplateInstance { get; }
Property Value
Type | Description |
---|---|
RoomTemplateInstance |
Shape
Shape of the room.
Declaration
public PolygonGrid2D Shape { get; }
Property Value
Type | Description |
---|---|
PolygonGrid2D |
Transformation
Chosen transformation of the room shape.
Declaration
public TransformationGrid2D Transformation { get; }
Property Value
Type | Description |
---|---|
TransformationGrid2D |
Transformations
All possible transformations of the room description.
Declaration
public IList<TransformationGrid2D> Transformations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<TransformationGrid2D> |