Gates
constGates:object
Defined in: client/api.d.ts:7941
Every kind of gate in the world: portcullises, the rune gate, goblin camp gates and crawl grates. None is a Door: a Doors.* call never matches one.
Type Declaration
Section titled “Type Declaration”freezeSchedule()
Section titled “freezeSchedule()”freezeSchedule(
selector):number
Cancels matching portcullises’ clock callbacks so the hour stops raising and lowering them. Returns how many matched.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
Returns
Section titled “Returns”number
held()
Section titled “held()”held():
HeldGateState[]
Gate state the server holds, re-applied to each gate as it streams in. It beats the gate policy.
Returns
Section titled “Returns”list()
Section titled “list()”list(
radius?,kind?):GateInfo[]
Lists loaded gates, nearest first; radius 0 means every loaded one.
Parameters
Section titled “Parameters”radius?
Section titled “radius?”number
"portcullis" | "runeGate" | "swingGate" | "crawlGrate" | ("portcullis" | "runeGate" | "swingGate" | "crawlGrate")[]
Returns
Section titled “Returns”GateInfo[]
policy()
Section titled “policy()”policy():
GatePolicy
The streamed-gate enforcement policy last set, with kinds spelled out and every list present.
Returns
Section titled “Returns”setLocked()
Section titled “setLocked()”setLocked(
selector,locked?):number
Locks (and closes) or unlocks matching gates, on this client only. Only portcullises have a lock; returns how many matched and support it.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
locked?
Section titled “locked?”boolean
Returns
Section titled “Returns”number
setOpen()
Section titled “setOpen()”setOpen(
selector,open?):number
Opens (and unlocks) or closes every loaded gate matching an actor name or path name, on this client only. A restream undoes it. Returns how many matched and support it.
Parameters
Section titled “Parameters”selector
Section titled “selector”string
boolean
Returns
Section titled “Returns”number
setPolicy()
Section titled “setPolicy()”setPolicy(
policy):number
Sets streamed-gate enforcement and applies it to every loaded gate; returns how many were checked.
Parameters
Section titled “Parameters”policy
Section titled “policy”Returns
Section titled “Returns”number