PlaceContext
What checkPlace and onPiecePlace read: the placement or the move.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
action |
Place | Retrieve | Move |
Place for a new piece, Retrieve for one out of storage, Move for a placed one. |
areas |
readonly Entity[] |
Each area its slots touch. |
cell |
Cell |
- |
cells |
readonly Cell[] |
Each cell it would fill, once each: the cells a rule over the map reads, such as “only on your side” or “not on the path”. |
entity |
Entity | null |
The stored or placed piece, or null for a new one. |
piece |
PieceHandle |
- |
player |
PlayerEntity | null |
Who asks, or null for a system’s verb. |
quarterTurns |
number |
- |
slots |
readonly number[] |
Each slot it would fill, as the kit’s slot keys. |
variant |
string |
- |
world |
World |
- |