Difference between revisions of "Gaming:updateState"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
  Gaming:updateState(key,data,immediate)
 
  Gaming:updateState(key,data,immediate)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''key''': (number) <translate>Key to update</translate> <br/>
 
'''key''': (number) <translate>Key to update</translate> <br/>

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Update a data element in cloud storage. Either Event.STATE_ERROR or Event.STATE_CONFLICT will be triggered.

 Gaming:updateState(key,data,immediate)

Parameters

key: (number) Key to update
data: (string) New data
immediate: (boolean) Push the update immediately