Skip to content

assertCoverableCoastMask

assertCoverableCoastMask(edges, context?): void

Defined in: packages/declarative-hex-worlds/src/selectors/selectors.ts:281

Assert that edges form a coverable coast mask, throwing a clear author-time error otherwise. Called by GameboardBuilder.setCoastEdges so a bad mask fails at the authoring call — naming the tile + the offending mask — rather than deep in projection with an opaque “no coast variant covers …” runtime error.

HexEdgeInput

string

void