PlayerExtended

From Virtual World Web Wiki
Revision as of 17:18, 19 November 2018 by Spark5 (Talk | contribs) (Documentation for the PlayerExtended class)

Jump to: navigation, search

Represents a Player, which is the GameCloud's representation of a connected user, the quests progress, achievements, advancement, etc.

  • This is a JavaScript visible object

Remarks [edit]

Properties

ParticipantExtended Participant {get;}
Gets the participant for this player

Events

OnAchievementWon(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Achievement Identifier
Fires when the player wins an achievement
OnQuestAbandoned(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Quest Identifier
Fires when the player abandons (quits) a quest
OnQuestAdvanced(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Quest Identifier
Fires when the player makes progress toward a quest (advances to the next step).
OnQuestCompleted(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Quest Identifier
Fires when the player completes a quest (successfully)
OnQuestStarted(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Quest Identifier
Fires when the player starts a new quest
OnUnlock(PlayerExtended player, String identifier)
Parameters:
player : This player
identifier : The Lock Identifier
Fires when the player unlocks a feature lock

Methods

bool IsUnlocked(string lockIdentifier)
Checks to see if a feature has been unlocked (all the conditions or steps for a GameCloud lock have been met) for this player