Difference between revisions of "PlayerExtended"
From Virtual World Web Wiki
(Documentation for the PlayerExtended class) |
(Documentation for the PlayerExtended class) |
||
Line 45: | Line 45: | ||
:: | :: | ||
::Fires when the player starts a new quest | ::Fires when the player starts a new quest | ||
+ | |||
+ | :{{CSharp|OnUnlock(PlayerExtended player, String identifier)}} | ||
+ | ::Parameters: | ||
+ | :::{{CSharp|player}} : This player | ||
+ | :::{{CSharp|identifier}} : The Lock Identifier | ||
+ | :: | ||
+ | ::Fires when the player unlocks a feature lock | ||
+ | |||
+ | ===Methods=== | ||
+ | :{{CSharp|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 | ||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Revision as of 17:18, 19 November 2018
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