Skip to content
On this page

Entity (Interface)

The Entity interface represents a user or player entity in the SWAG HTML5 SDK. It contains identification, authentication, and leaderboard information for a member.

Fields

FieldTypeDescription
_idstringUnique identifier for the entity.
tokenstringAuthentication token for the entity.
memberobject?Optional member details, including Shockwave account info.
member.shockwaveobject?Shockwave member details (if available).
member.shockwave.screen_namestringThe user's display name on Shockwave.
member.shockwave.site_member_idnumberThe user's site member ID.
member.shockwave.sourcestringSource of the member account.
member.shockwave.shockwave_logged_innumberIndicates if the user is logged in to Shockwave.
leaderboard_namestringThe user's display name for private leaderboards.
leaderboardsstring[]List of leaderboards the entity is associated with.

Usage

The Entity interface is used to represent the current user or player, including their authentication and leaderboard context.