Skip to main content

ZEPETO.Multiplay.Currency

Enumerations

Interfaces

Functions

loadCurrency

loadCurrency(userId): Promise<Currency>

Retrieves the currency object associated with a specific player. Throws CurrencyError.

Parameters

NameTypeDescription
userIdstringThe 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

NameType
playerSandboxPlayer

Returns

Promise<Currency>

Promise resolved upon completion, with the retrieved Currency object.