Show / Hide Table of Contents

Class DoorLineInfoBase<TDoorInstance, TDoorLine>.TileInfo

Information about a tile on a door line.

Inheritance
System.Object
DoorLineInfoBase<TDoorInstance, TDoorLine>.TileInfo
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public class TileInfo

Constructors

TileInfo(Vector3Int, Boolean, TDoorInstance, Int32)

Declaration
public TileInfo(Vector3Int position, bool isUsed, TDoorInstance door, int indexInsideDoor)
Parameters
Type Name Description
Vector3Int position
System.Boolean isUsed
TDoorInstance door
System.Int32 indexInsideDoor

Properties

Door

If the tile was used for a door, this property contains the corresponding door instance.

Declaration
public TDoorInstance Door { get; }
Property Value
Type Description
TDoorInstance

IndexInsideDoor

If the tile is used for a door, this property marks the position of this tile inside that door. If the door is 3 tiles wide, there will be 3 TileInfos for that corresponding door, with indexes 0, 1 and 2.

Declaration
public int IndexInsideDoor { get; }
Property Value
Type Description
System.Int32

IsUsed

Whether the tile is used for a door or not.

Declaration
public bool IsUsed { get; }
Property Value
Type Description
System.Boolean

Position

Position of the tile, relative to the room template.

Declaration
public Vector3Int Position { get; }
Property Value
Type Description
Vector3Int
In This Article
Back to top Generated by DocFX