Difference between revisions of "Gaming:resolveState"

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>Resolve a conflict state in cloud storage. Either [[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]] or [[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]] will be triggered.</translate>
 
<translate>Resolve a conflict state in cloud storage. Either [[Special:MyLanguage/Event.STATE_ERROR|Event.STATE_ERROR]] or [[Special:MyLanguage/Event.STATE_CONFLICT|Event.STATE_CONFLICT]] will be triggered.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:resolveState(key,version,data)
 
  Gaming:resolveState(key,version,data)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''key''': (number) <translate>Key to resolve</translate> <br/>
 
'''key''': (number) <translate>Key to resolve</translate> <br/>
 
'''version''': (string) <translate>Conflict context</translate> <br/>
 
'''version''': (string) <translate>Conflict context</translate> <br/>
 
'''data''': (string) <translate>New data</translate> <br/>
 
'''data''': (string) <translate>New data</translate> <br/>
 +
 +
{{Gaming}}

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Resolve a conflict state in cloud storage. Either Event.STATE_ERROR or Event.STATE_CONFLICT will be triggered.

 Gaming:resolveState(key,version,data)

Parameters

key: (number) Key to resolve
version: (string) Conflict context
data: (string) New data