Search
Preparing search index...
The search index is not available
game-score-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
game-score-sdk
Storage
Class Storage
Hierarchy
Storage
Index
Constructors
constructor
Properties
#context
#ready
Transaction
is
Empty
On
Boot
ready
temp
Accessors
local
Storages
Methods
_get
_set
clear
Context
copy
From
Context
extract
From
Context
get
get
Raw
is
Crazy
Games
Account
Linked
is
Empty
Context
load
Ads
Info
load
Config
load
Is
Exists
Shortcut
load
Language
load
Player
load
Secret
Code
migrate
To
Context
save
Ads
Info
save
Config
save
Is
Exists
Shortcut
save
Language
save
Player
save
Secret
Code
set
set
Context
set
Crazy
Games
Account
Linked
set
Raw
set
Storages
Constructors
constructor
new
Storage
(
storages
?:
default
[]
)
:
Storage
Parameters
storages:
default
[]
= []
Returns
Storage
Properties
Private
#context
#context
:
string
= ''
Private
#ready
Transaction
#ready
Transaction
:
Transaction
<
void
>
is
Empty
On
Boot
is
Empty
On
Boot
:
boolean
= true
ready
ready
:
Promise
<
void
>
temp
temp
:
Record
<
string
,
any
>
= {}
Accessors
local
Storages
get
localStorages
(
)
:
default
[]
Returns
default
[]
Methods
Private
_get
_get
(
storages
:
default
[]
, key
:
string
)
:
Promise
<
any
>
Parameters
storages:
default
[]
key:
string
Returns
Promise
<
any
>
Private
_set
_set
(
storages
:
default
[]
, key
:
string
, value
:
any
)
:
Promise
<
void
[]
>
Parameters
storages:
default
[]
key:
string
value:
any
Returns
Promise
<
void
[]
>
clear
Context
clear
Context
(
context
:
string
)
:
Promise
<
void
>
Parameters
context:
string
Returns
Promise
<
void
>
copy
From
Context
copy
From
Context
(
contextFrom
:
string
, contextTo
:
string
)
:
Promise
<
void
>
Parameters
contextFrom:
string
contextTo:
string
Returns
Promise
<
void
>
extract
From
Context
extract
From
Context
(
context
:
string
)
:
Promise
<
[
PlayerState
,
string
,
Lang
]
>
Parameters
context:
string
Returns
Promise
<
[
PlayerState
,
string
,
Lang
]
>
get
get
(
storages
:
default
[]
, key
:
string
)
:
Promise
<
any
>
Parameters
storages:
default
[]
key:
string
Returns
Promise
<
any
>
get
Raw
get
Raw
(
storages
:
default
[]
, key
:
string
)
:
Promise
<
any
>
Parameters
storages:
default
[]
key:
string
Returns
Promise
<
any
>
is
Crazy
Games
Account
Linked
is
Crazy
Games
Account
Linked
(
userId
:
string
)
:
Promise
<
boolean
>
Parameters
userId:
string
Returns
Promise
<
boolean
>
is
Empty
Context
is
Empty
Context
(
)
:
boolean
Returns
boolean
load
Ads
Info
load
Ads
Info
(
)
:
Promise
<
PlayerAdsInfo
>
Returns
Promise
<
PlayerAdsInfo
>
load
Config
load
Config
(
)
:
Promise
<
PlayerProjectConfig
>
Returns
Promise
<
PlayerProjectConfig
>
load
Is
Exists
Shortcut
load
Is
Exists
Shortcut
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
load
Language
load
Language
(
)
:
Promise
<
Lang
>
Returns
Promise
<
Lang
>
load
Player
load
Player
(
)
:
Promise
<
PlayerState
>
Returns
Promise
<
PlayerState
>
load
Secret
Code
load
Secret
Code
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
migrate
To
Context
migrate
To
Context
(
context
:
string
)
:
Promise
<
(
string
|
PlayerState
)
[]
>
Parameters
context:
string
Returns
Promise
<
(
string
|
PlayerState
)
[]
>
save
Ads
Info
save
Ads
Info
(
info
:
PlayerAdsInfo
)
:
Promise
<
void
|
void
[]
>
Parameters
info:
PlayerAdsInfo
Returns
Promise
<
void
|
void
[]
>
save
Config
save
Config
(
config
:
PlayerProjectConfig
)
:
Promise
<
void
|
void
[]
>
Parameters
config:
PlayerProjectConfig
Returns
Promise
<
void
|
void
[]
>
save
Is
Exists
Shortcut
save
Is
Exists
Shortcut
(
value
:
boolean
)
:
void
Parameters
value:
boolean
Returns
void
save
Language
save
Language
(
language
:
Lang
)
:
Promise
<
void
|
void
[]
>
Parameters
language:
Lang
Returns
Promise
<
void
|
void
[]
>
save
Player
save
Player
(
playerState
:
PlayerState
)
:
Promise
<
void
|
void
[]
>
Parameters
playerState:
PlayerState
Returns
Promise
<
void
|
void
[]
>
save
Secret
Code
save
Secret
Code
(
secretCode
:
string
)
:
Promise
<
void
|
void
[]
>
Parameters
secretCode:
string
Returns
Promise
<
void
|
void
[]
>
set
set
(
storages
:
default
[]
, key
:
string
, value
:
any
)
:
Promise
<
void
[]
>
Parameters
storages:
default
[]
key:
string
value:
any
Returns
Promise
<
void
[]
>
set
Context
set
Context
(
prefix
:
string
)
:
void
Parameters
prefix:
string
Returns
void
set
Crazy
Games
Account
Linked
set
Crazy
Games
Account
Linked
(
userId
:
string
)
:
Promise
<
void
>
Parameters
userId:
string
Returns
Promise
<
void
>
set
Raw
set
Raw
(
storages
:
default
[]
, key
:
string
, value
:
any
)
:
Promise
<
void
[]
>
Parameters
storages:
default
[]
key:
string
value:
any
Returns
Promise
<
void
[]
>
set
Storages
set
Storages
(
storages
:
default
[]
)
:
void
Parameters
storages:
default
[]
Returns
void
Exports
Storage
constructor
#context
#ready
Transaction
is
Empty
On
Boot
ready
temp
local
Storages
_get
_set
clear
Context
copy
From
Context
extract
From
Context
get
get
Raw
is
Crazy
Games
Account
Linked
is
Empty
Context
load
Ads
Info
load
Config
load
Is
Exists
Shortcut
load
Language
load
Player
load
Secret
Code
migrate
To
Context
save
Ads
Info
save
Config
save
Is
Exists
Shortcut
save
Language
save
Player
save
Secret
Code
set
set
Context
set
Crazy
Games
Account
Linked
set
Raw
set
Storages
Generated using
TypeDoc