Difference between revisions of "Gaming:reportAchievement"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Update achievement progress. Either ''Event.REPORT_ACHIEVEMENTS_COMPLETE'' or ''Event.REPORT_ACHIEVEMENTS_ERROR'' will be triggered.</translate> | <translate>Update achievement progress. Either ''Event.REPORT_ACHIEVEMENTS_COMPLETE'' or ''Event.REPORT_ACHIEVEMENTS_ERROR'' will be triggered.</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
Gaming:reportAchievement(achievementId,numSteps,immediate) | Gaming:reportAchievement(achievementId,numSteps,immediate) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''achievementId''': (string) <translate>Achievement Id</translate> <br/> | '''achievementId''': (string) <translate>Achievement Id</translate> <br/> | ||
'''numSteps''': (number) <translate>Number of steps</translate> '''optional'''<br/> | '''numSteps''': (number) <translate>Number of steps</translate> '''optional'''<br/> | ||
'''immediate''': (boolean) <translate>Push the update immediately</translate> <br/> | '''immediate''': (boolean) <translate>Push the update immediately</translate> <br/> | ||
+ | |||
+ | {{Gaming}} |
Latest revision as of 14:29, 13 July 2023
Available since: Gideros 2012.09
Class: Gaming
Description
Update achievement progress. Either Event.REPORT_ACHIEVEMENTS_COMPLETE or Event.REPORT_ACHIEVEMENTS_ERROR will be triggered.
Gaming:reportAchievement(achievementId,numSteps,immediate)
Parameters
achievementId: (string) Achievement Id
numSteps: (number) Number of steps optional
immediate: (boolean) Push the update immediately
- Gaming:autoMatch
- Gaming:deleteState
- Gaming:getAllPlayers
- Gaming:getPlayerId
- Gaming:getPlayerInfo
- Gaming:getPlayerName
- Gaming:getPlayerPicture
- Gaming:getPlayerScore
- Gaming:incrementAchievement
- Gaming:invitePlayers
- Gaming:isLoggedIn
- Gaming:joinRoom
- Gaming:loadAchievements
- Gaming:loadPlayerCenteredScores
- Gaming:loadScores
- Gaming:loadState
- Gaming:login
- Gaming:logout
- Gaming:reportAchievement
- Gaming:reportScore
- Gaming:resolveState
- Gaming:revealAchievement
- Gaming:sendTo
- Gaming:sendToAll
- Gaming:showAchievements
- Gaming:showInvitations
- Gaming:showLeaderboard
- Gaming:showWaitingRoom
- Gaming:updateState
- Event.CONNECTED_TO_ROOM
- Event.DATA_RECEIVED
- Event.DISCONNECTED_FROM_ROOM
- Event.GAME_STARTED
- Event.INVITATION_RECEIVED
- Event.JOINED_ROOM
- Event.LEFT_ROOM
- Event.LOAD_ACHIEVEMENTS_COMPLETE
- Event.LOAD_ACHIEVEMENTS_ERROR
- Event.LOAD_SCORES_COMPLETE
- Event.LOAD_SCORES_ERROR
- Event.LOGIN_COMPLETE
- Event.LOGIN_ERROR
- Event.PEER_CONNECTED
- Event.PEER_DECLINED
- Event.PEER_DISCONNECTED
- Event.PEER_INVITED
- Event.PEER_JOINED
- Event.PEER_LEFT
- Event.PLAYER_INFORMATION_COMPLETE
- Event.PLAYER_INFORMATION_ERROR
- Event.PLAYER_SCORE_COMPLETE
- Event.PLAYER_SCORE_ERROR
- Event.REPORT_ACHIEVEMENT_COMPLETE
- Event.REPORT_ACHIEVEMENT_ERROR
- Event.REPORT_SCORE_COMPLETE
- Event.REPORT_SCORE_ERROR
- Event.ROOM_AUTO_MATCHING
- Event.ROOM_CONNECTED
- Event.ROOM_CONNECTING
- Event.ROOM_CREATED
- Event.STATE_CONFLICT
- Event.STATE_DELETED
- Event.STATE_ERROR
- Event.STATE_LOADED