Difference between revisions of "Gaming:loadState"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Load a data element from cloud storage. Either 'Event.STATE_LOADED'', ''Event.STATE_ERROR'' or ''Event.STATE_CONFLICT` will be triggered.</translate>
 
<translate>Load a data element from cloud storage. Either 'Event.STATE_LOADED'', ''Event.STATE_ERROR'' or ''Event.STATE_CONFLICT` will be triggered.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:loadState(key)
 
  Gaming:loadState(key)
 
</source>
 
</source>

Revision as of 14:28, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Load a data element from cloud storage. Either 'Event.STATE_LOADED, Event.STATE_ERROR or Event.STATE_CONFLICT` will be triggered. <syntaxhighlight lang="lua">

Gaming:loadState(key)

</source>

Parameters

key: (number) Key to load