BuildAccessContext
What checkAccess and readBuildAccess read.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
action |
BuildAction |
- |
areas |
readonly Entity[] |
Each area its slots touch. |
entity |
Entity | null |
The placed piece, for a move, a store or a demolish; null for a new piece. |
isOutsideAny |
boolean |
Whether any of its slots lies outside every area. |
outside |
BuildAreaAccess |
The access of the world outside every area. |
piece |
PieceHandle |
- |
placedBy |
string |
Who placed it, a player id, or “” for a new piece or a system’s. |
player |
PlayerEntity |
- |
world |
World |
- |