Show / Hide Table of Contents

Class DoorGrid2D

Represents a single door of a room template. The door is placed between the From and To points.

Inheritance
System.Object
DoorGrid2D
Namespace: Edgar.GraphBasedGenerator.Grid2D
Assembly: Edgar.dll
Syntax
public class DoorGrid2D : Object

Constructors

DoorGrid2D(Vector2Int, Vector2Int, IDoorSocket)

Declaration
public DoorGrid2D(Vector2Int from, Vector2Int to, IDoorSocket socket = null)
Parameters
Type Name Description
Vector2Int from

See the From property.

Vector2Int to

See the To property.

IDoorSocket socket

See the Socket property.

Properties

From

First point of the door.

Declaration
public Vector2Int From { get; }
Property Value
Type Description
Vector2Int

Socket

Door socket. Only doors with the same socket (test with .Equals()) can be connected.

Declaration
public IDoorSocket Socket { get; }
Property Value
Type Description
IDoorSocket

To

Last point of the door.

Declaration
public Vector2Int To { get; }
Property Value
Type Description
Vector2Int
Back to top Generated by DocFX