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. |
isUsed | |
TDoor |
door | |
System. |
indexInsideDoor |
Properties
Door | If the tile was used for a door, this property contains the corresponding door instance. |
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. |
IsUsed | Whether the tile is used for a door or not. |
Position | Position of the tile, relative to the room template. |
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 |
---|---|
TDoor |
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. |
IsUsed
Whether the tile is used for a door or not.
Declaration
public bool IsUsed { get; }
Property Value
Type | Description |
---|---|
System. |
Position
Position of the tile, relative to the room template.
Declaration
public Vector3Int Position { get; }
Property Value
Type | Description |
---|---|
Vector3Int |