AchievementGateway
AchievementGateway
Base class for implementing achievement system API connectors
Kind: global class
- AchievementGateway
- .getUnlocked() ⇒
Promise.<Array.<string>> - .unlock(id) ⇒
Promise
- .getUnlocked() ⇒
achievementGateway.getUnlocked() ⇒ Promise.<Array.<string>>
Retrieve list of unlocked achievements
Kind: instance method of AchievementGateway
Returns: Promise.<Array.<string>> - IDs of unlocked achievements
achievementGateway.unlock(id) ⇒ Promise
Unlock an achievements by ID
Kind: instance method of AchievementGateway
| Param | Type |
|---|---|
| id | String |