Skip to content

Class: player

Represents a player in the game. To access info about the current player, use the Wortal.player API. This is used to access info about other players such as friends or leaderboard entries.

Table of contents

Accessors

Accessors

daysSinceFirstPlay

get daysSinceFirstPlay(): number

Days since the first time the player has played this game.

Returns

number


id

get id(): string

ID of the player. This is platform-dependent.

Returns

string


isFirstPlay

get isFirstPlay(): boolean

Is this the first time the player has played this game or not.

Returns

boolean


name

get name(): string

Name of the player.

Returns

string


photo

get photo(): string

URL for the player's photo.

Returns

string