PlayerGear
Defined in: shared.d.ts:1317
Per-slot gear controller returned by Player.gear.
Methods
Section titled “Methods”apply()
Section titled “apply()”apply(
changes,callback?):number
Defined in: shared.d.ts:1332
Every slot in one round trip and one client tick. A value names what should end up in that slot; null clears it. Not a transaction — the ops that can apply do. Returns the request id.
Parameters
Section titled “Parameters”changes
Section titled “changes”Record<string, string | GearApplyEntry | null>
callback?
Section titled “callback?”GearCallback
Returns
Section titled “Returns”number
available()
Section titled “available()”available(
slot):GearItem[]
Defined in: shared.d.ts:1323
Owned gear that fits this slot, the worn one flagged.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”GearItem[]
equip()
Section titled “equip()”equip(
itemId,options?,callback?):number
Defined in: shared.d.ts:1325
Client round trip; returns the request id.
Parameters
Section titled “Parameters”itemId
Section titled “itemId”string
options?
Section titled “options?”GearEquipOptions
callback?
Section titled “callback?”GearCallback
Returns
Section titled “Returns”number
equipped()
Section titled “equipped()”equipped():
Record<string,GearItem|null> |null
Defined in: shared.d.ts:1321
Worn item per slot, every slot present with an explicit null; null before the first report.
Returns
Section titled “Returns”Record<string, GearItem | null> | null
revision()
Section titled “revision()”revision():
number
Defined in: shared.d.ts:1334
Sequence of the last gear report adopted; compare against a result’s appliedRevision.
Returns
Section titled “Returns”number
slots()
Section titled “slots()”slots():
string[]
Defined in: shared.d.ts:1319
Canonical slot names in the game’s own order, empty before the client’s first report.
Returns
Section titled “Returns”string[]
unequip()
Section titled “unequip()”unequip(
slot,callback?):number
Defined in: shared.d.ts:1327
Client round trip; returns the request id.
Parameters
Section titled “Parameters”string
callback?
Section titled “callback?”GearCallback
Returns
Section titled “Returns”number