Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

readBuildAccess

readBuildAccess(context): boolean

The kit’s answer to whether player may take action with a piece, judged by every area its slots touch, and by the world outside them where a slot lies outside every area: each must allow it.

  • A private area: its owner does anything; a guest places and retrieves, and moves, stores and demolishes the guest’s own pieces.
  • An add-only area: anyone places and retrieves; nobody moves, stores or demolishes.
  • A closed area: nobody does anything.
  • Outside every area: as outside says, the held world’s owner and members as its owners; with no held world, as in a match, every player as a guest, who lifts their own pieces alone.
  • The held world’s owner moves, stores and demolishes anywhere, to recover a griefed or stranded piece.

A game’s checkAccess changes one case and calls this for the rest.

Parameter Type
context BuildAccessContext

boolean