Struct DoorPlacement
A single detected door cell, returned in
Doors. Each placement carries the grid cell the
door occupies, the passage axis (which determines the leaf's slide direction), and
the spawned leaf GameObject (or null if door detection ran without an
attached DoorShapeConfig).
Inherited Members
Namespace: Scylla.Core.Util.ProceduralMapGen
Assembly: ScyllaCore.dll
Syntax
public readonly struct DoorPlacement
Constructors
DoorPlacement(SquareCoord, DoorAxis, GameObject)
Initializes a new DoorPlacement.
Declaration
public DoorPlacement(SquareCoord cell, DoorAxis axis, GameObject gameObject)
Parameters
| Type | Name | Description |
|---|---|---|
| SquareCoord | cell | Grid cell the door occupies. |
| DoorAxis | axis | Passage axis. |
| GameObject | gameObject | Spawned leaf GameObject, or |
Fields
Axis
The world axis the passage runs along (perpendicular to the flanking walls).
Declaration
public readonly DoorAxis Axis
Field Value
| Type | Description |
|---|---|
| DoorAxis |
Cell
Grid cell the door occupies. Always a walkable cell with walls on the two cells perpendicular to Axis.
Declaration
public readonly SquareCoord Cell
Field Value
| Type | Description |
|---|---|
| SquareCoord |
GameObject
The spawned door leaf GameObject. null when
WithDoors(float, IRandomSource, DoorShapeConfig?) was called without a
DoorShapeConfig (detection-only mode).
Declaration
public readonly GameObject GameObject
Field Value
| Type | Description |
|---|---|
| GameObject |