Class DoorInstanceGrid3D
Class containing information about a door of a room. This class always represent a door that was used in the currently generated level.
Inheritance
System.Object
DoorInstanceGrid3D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class DoorInstanceGrid3D
Constructors
DoorInstanceGrid3D(RoomBase, RoomInstanceGrid3D, DoorSocketBase, DoorDirection, DoorHandlerGrid3D, OrthogonalLine)
Declaration
public DoorInstanceGrid3D(RoomBase connectedRoom, RoomInstanceGrid3D connectedRoomInstance, DoorSocketBase socket, DoorDirection direction, DoorHandlerGrid3D doorHandler, OrthogonalLine doorLine)
Parameters
Type | Name | Description |
---|---|---|
RoomBase | connectedRoom | |
RoomInstanceGrid3D | connectedRoomInstance | |
DoorSocketBase | socket | |
DoorDirection | direction | |
DoorHandlerGrid3D | doorHandler | |
OrthogonalLine | doorLine |
Properties
ConnectedRoom
To which room is the room that contains this door connected.
Declaration
public RoomBase ConnectedRoom { get; }
Property Value
Type | Description |
---|---|
RoomBase |
Remarks
This property can be null if the door is not used.
ConnectedRoomInstance
To which room instance is the room that contains this door connected.
Declaration
public RoomInstanceGrid3D ConnectedRoomInstance { get; }
Property Value
Type | Description |
---|---|
RoomInstanceGrid3D |
Remarks
This property is not serialized. Unfortunately, objects in Unity are serialized by value and that would make Unity try to serialize the whole graph.
This property can be null if the door is not used.
Direction
Direction of the door (entrance/exit).
Declaration
public DoorDirection Direction { get; }
Property Value
Type | Description |
---|---|
DoorDirection |
DoorHandler
Corresponding door handler.
Declaration
public DoorHandlerGrid3D DoorHandler { get; }
Property Value
Type | Description |
---|---|
DoorHandlerGrid3D |
DoorLine
Line containing all points of the door. The line is in the local coordinates relative to the room template prefab.
Declaration
public OrthogonalLine DoorLine { get; }
Property Value
Type | Description |
---|---|
OrthogonalLine |
Socket
Socket of the door. Null if there was no socket assigned.
Declaration
public DoorSocketBase Socket { get; }
Property Value
Type | Description |
---|---|
DoorSocketBase |