Difference between revisions of "Gaming:incrementAchievement"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === Increment achievement progress Either. `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEM...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
+
<languages />
=== Description ===
+
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
Increment achievement progress Either. `Event.REPORT_ACHIEVEMENTS_COMPLETE` or `Event.REPORT_ACHIEVEMENTS_ERROR` will be triggered.
+
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gaming|Gaming]]<br/>
<source lang="lua">
+
=== <translate>Description</translate> ===
= Gaming:incrementAchievement(achievementIdnumStepsimmediate,)
+
<translate>Increment achievement progress Either. ''Event.REPORT_ACHIEVEMENTS_COMPLETE'' or ''Event.REPORT_ACHIEVEMENTS_ERROR'' will be triggered.</translate>
</source>
+
<syntaxhighlight lang="lua">
'''achievementId:''' (string) Achievement Id ''''''<br/>
+
Gaming:incrementAchievement(achievementId,numSteps,immediate)
'''numSteps:''' (number) Number of steps to add '''optional'''<br/>
+
</syntaxhighlight>
'''immediate:''' (boolean) Push the update immediately ''''''<br/>
+
=== <translate>Parameters</translate> ===
 +
'''achievementId''': (string) <translate>Achievement Id</translate> <br/>
 +
'''numSteps''': (number) <translate>Number of steps to add</translate> '''optional'''<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

Increment achievement progress Either. Event.REPORT_ACHIEVEMENTS_COMPLETE or Event.REPORT_ACHIEVEMENTS_ERROR will be triggered.

 Gaming:incrementAchievement(achievementId,numSteps,immediate)

Parameters

achievementId: (string) Achievement Id
numSteps: (number) Number of steps to add optional
immediate: (boolean) Push the update immediately