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>
Assembly: cs.temp.dll.dll
Syntax
public abstract class DoorLineInfoBase<TDoorInstance, TDoorLine>
where TDoorInstance : class where TDoorLine : IDoorLine
Type Parameters
Name |
Description |
TDoorInstance |
|
TDoorLine |
|
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
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