Interface: InventoryLease
Recoverable ownership of one player's temporary inventory replacement.
Properties
id
readonlyid:string
Stable lease identifier.
isActive
readonlyisActive:boolean
Whether the temporary loadout is currently active.
playerId
readonlyplayerId:string
UUID of the player whose inventory is leased.
snapshot
readonlysnapshot:InventorySnapshot
Original state that will be restored.
state
readonlystate:InventoryLeaseState
Current lease lifecycle state.
unloadPolicy
readonlyunloadPolicy:InventoryLeaseUnloadPolicy
Requested unload behaviour.
Methods
discard()
discard():
void
Keeps the current loadout and closes the lease without restoration.
Returns
void
restore()
restore():
void
Restores the original state and closes the lease.
Returns
void