PlayerExtended
From Virtual World Web Wiki
Revision as of 17:18, 19 November 2018 by Spark5 (Talk | contribs) (Documentation for the PlayerExtended class)
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
- Parameters:
- OnQuestAbandoned(PlayerExtended player, String identifier)
- Parameters:
- player : This player
- identifier : The Quest Identifier
- Fires when the player abandons (quits) a quest
- Parameters:
- 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).
- Parameters:
- OnQuestCompleted(PlayerExtended player, String identifier)
- Parameters:
- player : This player
- identifier : The Quest Identifier
- Fires when the player completes a quest (successfully)
- Parameters:
- OnQuestStarted(PlayerExtended player, String identifier)
- Parameters:
- player : This player
- identifier : The Quest Identifier
- Fires when the player starts a new quest
- Parameters:
- OnUnlock(PlayerExtended player, String identifier)
- Parameters:
- player : This player
- identifier : The Lock Identifier
- Fires when the player unlocks a feature lock
- Parameters:
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