Class DoorLineInfoGrid2D
Provides information about which parts (if any) of a door line were actually used to place a door.
Inherited Members
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class DoorLineInfoGrid2D : DoorLineInfoBase<DoorInstanceGrid2D, DoorLineGrid2D>
Remarks
In the manual door mode, each door line contains exactly one position where a door can be placed. In the simple and hybrid door modes, each door line usually contains multiple positions where a door can be placed.
The usual use case of this class is to use the GetTiles() method to get all the tiles on the door line. Each tile contains information about whether the position/tile is used in any door and if so, in which door.
Constructors
DoorLineInfoGrid2D(DoorLineGrid2D, SerializableVector3Int, List<DoorInstanceGrid2D>)
Declaration
public DoorLineInfoGrid2D(DoorLineGrid2D doorLine, SerializableVector3Int direction, List<DoorInstanceGrid2D> usedDoors)
Parameters
Type | Name | Description |
---|---|---|
DoorLineGrid2D | doorLine | |
SerializableVector3Int | direction | |
System.Collections.Generic.List<DoorInstanceGrid2D> | usedDoors |
Methods
GetLine(DoorInstanceGrid2D)
Declaration
protected override OrthogonalLine GetLine(DoorInstanceGrid2D doorInstance)
Parameters
Type | Name | Description |
---|---|---|
DoorInstanceGrid2D | doorInstance |
Returns
Type | Description |
---|---|
OrthogonalLine |
Overrides
Edgar.Unity.DoorLineInfoBase<Edgar.Unity.DoorInstanceGrid2D, Edgar.Unity.DoorLineGrid2D>.GetLine(Edgar.Unity.DoorInstanceGrid2D)