ZEPETO.Multiplay.Inventory
Enumerations
Interfaces
Functions
loadInventory
▸ loadInventory(userId
): Promise
<Inventory
>
Retrieves the inventory object associated with a specific player. Throws InventoryError.
Parameters
Name | Type | Description |
---|---|---|
userId | string | The user ID of the player. |
Returns
Promise
<Inventory
>
Promise
resolved upon completion, with the retrieved Inventory object.
▸ loadInventory(player
): Promise
<Inventory
>
Retrieves the inventory object associated with a specific player. Throws InventoryError.
Parameters
Name | Type |
---|---|
player | SandboxPlayer |
Returns
Promise
<Inventory
>
Promise
resolved upon completion, with the retrieved Inventory object.