Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

SanctuaryLayout

Defined in: server/api.d.ts:5566

A Room of Requirement’s saved form: plain JSON-safe data, as Sanctuary.get returns it and Sanctuary.load takes it. It holds the room’s content only, so a layout can be stored, copied into another room, or moved between servers.

optional beasts?: SanctuaryBeast[]

Defined in: server/api.d.ts:5590

The beasts in the room’s vivariums, at most 12 of 4 species in each. Sanctuary.get reads their pose, happiness, needs and byproduct live.


optional lighting?: string

Defined in: server/api.d.ts:5585

Lighting identity: Default, Potnr, Hbgst, Mzoo or Dwiz; empty leaves each client’s own.


optional locks?: Record<string, boolean>

Defined in: server/api.d.ts:5580

The room’s own locks (expansions, vivariums, dressing, lighting). Only Sanctuary.load sets them, never an editor; a lock left out keeps each client’s own state.


optional objects?: SanctuaryObject[]

Defined in: server/api.d.ts:5575

Every object row inside the Sanctuary map.


optional version?: number

Defined in: server/api.d.ts:5570

Format version. Sanctuary.get writes the current one; Sanctuary.load refuses one newer than it reads.