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