Show / Hide Table of Contents

Class DoorLineInfoBase<TDoorInstance, TDoorLine>

Provides information about which parts (if any) of a door line were actually used to place a door.

Inheritance
System.Object
DoorLineInfoBase<TDoorInstance, TDoorLine>
DoorLineInfoGrid2D
DoorLineInfoGrid3D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class DoorLineInfoBase<TDoorInstance, TDoorLine>
    where TDoorInstance : class where TDoorLine : IDoorLine
Type Parameters
Name Description
TDoorInstance
TDoorLine
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

DoorLineInfoBase(TDoorLine, SerializableVector3Int, List<TDoorInstance>)

Declaration
protected DoorLineInfoBase(TDoorLine doorLine, SerializableVector3Int direction, List<TDoorInstance> usedDoors)
Parameters
Type Name Description
TDoorLine doorLine
SerializableVector3Int direction
System.Collections.Generic.List<TDoorInstance> usedDoors

Properties

DoorLine

Door line that described where doors can start and how wide they are.

Declaration
public TDoorLine DoorLine { get; }
Property Value
Type Description
TDoorLine

UsedDoors

All the doors that are used in the level and are contained in the door line.

Declaration
public List<TDoorInstance> UsedDoors { get; }
Property Value
Type Description
System.Collections.Generic.List<TDoorInstance>

Methods

GetLine(TDoorInstance)

Declaration
protected abstract OrthogonalLine GetLine(TDoorInstance doorInstance)
Parameters
Type Name Description
TDoorInstance doorInstance
Returns
Type Description
OrthogonalLine

GetTiles()

Returns all the tiles/positions that are contained in the door line. Each tile comes with information whether it was used for a door or not.

Declaration
public List<DoorLineInfoBase<TDoorInstance, TDoorLine>.TileInfo> GetTiles()
Returns
Type Description
System.Collections.Generic.List<DoorLineInfoBase.TileInfo<>>
In This Article
Back to top Generated by DocFX