Gates
constGates:object
Defined in: server/api.d.ts:3799
Server-held gate state, for every kind of gate: portcullises, the rune gate, goblin camp gates and crawl grates. Every client applies it on arrival and again whenever a matching gate streams in, whatever that player’s save or gate policy says. A player can still open a lockless gate their own way until it next streams in.
Type Declaration
Section titled “Type Declaration”clear()
Section titled “clear()”clear(
selector):boolean
Releases one selector. Its gates keep their current state until they restream into each player’s own save.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
Returns
Section titled “Returns”boolean
clearAll()
Section titled “clearAll()”clearAll():
number
Releases every selector; returns how many were held.
Returns
Section titled “Returns”number
get(
selector):GateState|null
The state held under one selector.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
Returns
Section titled “Returns”GateState | null
list()
Section titled “list()”list():
GateState[]
Every held gate state.
Returns
Section titled “Returns”set(
selector,state):boolean
Holds a gate’s lock and/or open state for every player. The selector is an actor name or a path name (Gates.list on a client shows both). A selector left holding nothing is released.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
Returns
Section titled “Returns”boolean