@defold-typescript/library-types 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +52 -0
- package/README.md +78 -0
- package/api-doc/boom.boom.json +26 -0
- package/api-doc/bridge.bridge.json +1653 -0
- package/api-doc/bzAnim.bzLibrary.json +156 -0
- package/api-doc/defcon.console.json +109 -0
- package/api-doc/defmath.defmath.json +1381 -0
- package/api-doc/defsave.defsave.json +175 -0
- package/api-doc/deftest.deftest.json +71 -0
- package/api-doc/dicebag.dicebag.json +323 -0
- package/api-doc/event.event.json +238 -0
- package/api-doc/gooey.gooey.json +963 -0
- package/api-doc/immutable.immutable.json +63 -0
- package/api-doc/in.accelerometer.json +281 -0
- package/api-doc/in.button.json +148 -0
- package/api-doc/in.cursor.json +203 -0
- package/api-doc/in.gesture.json +206 -0
- package/api-doc/in.keyboard.json +45 -0
- package/api-doc/in.mapper.json +141 -0
- package/api-doc/in.onscreen.json +265 -0
- package/api-doc/in.state.json +195 -0
- package/api-doc/in.textbox.json +213 -0
- package/api-doc/in.triggers.json +1260 -0
- package/api-doc/lang.lang.json +411 -0
- package/api-doc/log.log.json +50 -0
- package/api-doc/metrics.fps.json +88 -0
- package/api-doc/metrics.mem.json +80 -0
- package/api-doc/monarch.monarch.json +1065 -0
- package/api-doc/monarch.transitions.easings.json +206 -0
- package/api-doc/monarch.transitions.gui.json +445 -0
- package/api-doc/nakama.engine.defold.json +165 -0
- package/api-doc/nakama.nakama.json +6574 -0
- package/api-doc/nakama.util.log.json +25 -0
- package/api-doc/narrator.narrator.json +150 -0
- package/api-doc/orthographic.camera.json +1019 -0
- package/api-doc/persist.persist.json +142 -0
- package/api-doc/platypus.platypus.json +631 -0
- package/api-doc/proto.proto.json +355 -0
- package/api-doc/rendy.rendy.json +408 -0
- package/api-doc/richtext.color.json +219 -0
- package/api-doc/richtext.richtext.json +382 -0
- package/api-doc/richtext.tags.json +67 -0
- package/api-doc/saver.saver.json +553 -0
- package/api-doc/saver.storage.json +174 -0
- package/api-doc/squid.squid.json +660 -0
- package/api-doc/starly.starly.json +488 -0
- package/api-doc/tweener.tweener.json +419 -0
- package/api-doc/yagames.yagames.json +1465 -0
- package/api-doc/zzfx.api.json +85 -0
- package/generated/boom.boom.d.ts +1585 -0
- package/generated/bridge.bridge.d.ts +533 -0
- package/generated/bzAnim.bzLibrary.d.ts +93 -0
- package/generated/defcon.console.d.ts +24 -0
- package/generated/defmath.defmath.d.ts +194 -0
- package/generated/defsave.defsave.d.ts +31 -0
- package/generated/deftest.deftest.d.ts +47 -0
- package/generated/dicebag.dicebag.d.ts +90 -0
- package/generated/event.event.d.ts +54 -0
- package/generated/gooey.gooey.d.ts +261 -0
- package/generated/immutable.immutable.d.ts +13 -0
- package/generated/in.accelerometer.d.ts +37 -0
- package/generated/in.button.d.ts +20 -0
- package/generated/in.cursor.d.ts +33 -0
- package/generated/in.gesture.d.ts +64 -0
- package/generated/in.keyboard.d.ts +18 -0
- package/generated/in.mapper.d.ts +23 -0
- package/generated/in.onscreen.d.ts +58 -0
- package/generated/in.state.d.ts +34 -0
- package/generated/in.textbox.d.ts +26 -0
- package/generated/in.triggers.d.ts +180 -0
- package/generated/lang.lang.d.ts +33 -0
- package/generated/log.log.d.ts +40 -0
- package/generated/metrics.fps.d.ts +16 -0
- package/generated/metrics.mem.d.ts +16 -0
- package/generated/monarch.monarch.d.ts +412 -0
- package/generated/monarch.transitions.easings.d.ts +65 -0
- package/generated/monarch.transitions.gui.d.ts +197 -0
- package/generated/nakama.engine.defold.d.ts +24 -0
- package/generated/nakama.nakama.d.ts +594 -0
- package/generated/nakama.util.log.d.ts +10 -0
- package/generated/narrator.narrator.d.ts +66 -0
- package/generated/orthographic.camera.d.ts +308 -0
- package/generated/persist.persist.d.ts +34 -0
- package/generated/platypus.platypus.d.ts +76 -0
- package/generated/proto.proto.d.ts +36 -0
- package/generated/rendy.rendy.d.ts +184 -0
- package/generated/richtext.color.d.ts +33 -0
- package/generated/richtext.richtext.d.ts +126 -0
- package/generated/richtext.tags.d.ts +12 -0
- package/generated/saver.saver.d.ts +44 -0
- package/generated/saver.storage.d.ts +16 -0
- package/generated/squid.squid.d.ts +106 -0
- package/generated/starly.starly.d.ts +148 -0
- package/generated/tweener.tweener.d.ts +151 -0
- package/generated/yagames.yagames.d.ts +279 -0
- package/generated/zzfx.api.d.ts +20 -0
- package/library-classification.json +726 -0
- package/library-targets.json +291 -0
- package/package.json +180 -0
- package/scripts/extract-api-doc.ts +418 -0
- package/scripts/sync-library-types.ts +542 -0
|
@@ -0,0 +1,1653 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"namespace": "bridge.bridge",
|
|
4
|
+
"brief": "",
|
|
5
|
+
"description": ""
|
|
6
|
+
},
|
|
7
|
+
"elements": [
|
|
8
|
+
{
|
|
9
|
+
"type": "FUNCTION",
|
|
10
|
+
"name": "achievements.get_list",
|
|
11
|
+
"brief": "Returns the achievement list in JSON.",
|
|
12
|
+
"description": "Returns the achievement list in JSON.",
|
|
13
|
+
"parameters": [
|
|
14
|
+
{
|
|
15
|
+
"name": "options",
|
|
16
|
+
"doc": "",
|
|
17
|
+
"types": [
|
|
18
|
+
"object"
|
|
19
|
+
],
|
|
20
|
+
"is_optional": "False"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "on_success",
|
|
24
|
+
"doc": "function(_, list)",
|
|
25
|
+
"types": [
|
|
26
|
+
"(this: any, list: unknown) => void"
|
|
27
|
+
],
|
|
28
|
+
"is_optional": "False"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "on_failure",
|
|
32
|
+
"doc": "function(_, error)",
|
|
33
|
+
"types": [
|
|
34
|
+
"(this: any, error: unknown) => void"
|
|
35
|
+
],
|
|
36
|
+
"is_optional": "False"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"returnvalues": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "FUNCTION",
|
|
43
|
+
"name": "achievements.is_get_list_supported",
|
|
44
|
+
"brief": "Check if getting list of achievements is supported.",
|
|
45
|
+
"description": "Check if getting list of achievements is supported.",
|
|
46
|
+
"parameters": [],
|
|
47
|
+
"returnvalues": [
|
|
48
|
+
{
|
|
49
|
+
"name": "",
|
|
50
|
+
"doc": "",
|
|
51
|
+
"types": [
|
|
52
|
+
"boolean"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "FUNCTION",
|
|
59
|
+
"name": "achievements.is_native_popup_supported",
|
|
60
|
+
"brief": "Check if built-in popup is supported.",
|
|
61
|
+
"description": "Check if built-in popup is supported.",
|
|
62
|
+
"parameters": [],
|
|
63
|
+
"returnvalues": [
|
|
64
|
+
{
|
|
65
|
+
"name": "",
|
|
66
|
+
"doc": "",
|
|
67
|
+
"types": [
|
|
68
|
+
"boolean"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "FUNCTION",
|
|
75
|
+
"name": "achievements.is_supported",
|
|
76
|
+
"brief": "Use this to determine if you can implement achievements for your game on the current platform.",
|
|
77
|
+
"description": "Use this to determine if you can implement achievements for your game on the current platform.",
|
|
78
|
+
"parameters": [],
|
|
79
|
+
"returnvalues": [
|
|
80
|
+
{
|
|
81
|
+
"name": "",
|
|
82
|
+
"doc": "",
|
|
83
|
+
"types": [
|
|
84
|
+
"boolean"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "FUNCTION",
|
|
91
|
+
"name": "achievements.show_native_popup",
|
|
92
|
+
"brief": "Returns the achievement list in JSON.",
|
|
93
|
+
"description": "Returns the achievement list in JSON.",
|
|
94
|
+
"parameters": [
|
|
95
|
+
{
|
|
96
|
+
"name": "options",
|
|
97
|
+
"doc": "",
|
|
98
|
+
"types": [
|
|
99
|
+
"object"
|
|
100
|
+
],
|
|
101
|
+
"is_optional": "False"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "on_success",
|
|
105
|
+
"doc": "function()",
|
|
106
|
+
"types": [
|
|
107
|
+
"(...args: any[]) => void"
|
|
108
|
+
],
|
|
109
|
+
"is_optional": "False"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "on_failure",
|
|
113
|
+
"doc": "function(_, error)",
|
|
114
|
+
"types": [
|
|
115
|
+
"(this: any, error: unknown) => void"
|
|
116
|
+
],
|
|
117
|
+
"is_optional": "False"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"returnvalues": []
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "FUNCTION",
|
|
124
|
+
"name": "achievements.unlock",
|
|
125
|
+
"brief": "Unlocks achievement for a player.",
|
|
126
|
+
"description": "Unlocks achievement for a player.",
|
|
127
|
+
"parameters": [
|
|
128
|
+
{
|
|
129
|
+
"name": "options",
|
|
130
|
+
"doc": "",
|
|
131
|
+
"types": [
|
|
132
|
+
"object"
|
|
133
|
+
],
|
|
134
|
+
"is_optional": "False"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "on_success",
|
|
138
|
+
"doc": "function(_, result)",
|
|
139
|
+
"types": [
|
|
140
|
+
"(this: any, result: unknown) => void"
|
|
141
|
+
],
|
|
142
|
+
"is_optional": "False"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "on_failure",
|
|
146
|
+
"doc": "function(_, error)",
|
|
147
|
+
"types": [
|
|
148
|
+
"(this: any, error: unknown) => void"
|
|
149
|
+
],
|
|
150
|
+
"is_optional": "False"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"returnvalues": []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "FUNCTION",
|
|
157
|
+
"name": "advertisement.banner_state",
|
|
158
|
+
"brief": "Hide the currently displayed banner ad when it is no longer needed.",
|
|
159
|
+
"description": "Hide the currently displayed banner ad when it is no longer needed.",
|
|
160
|
+
"parameters": [],
|
|
161
|
+
"returnvalues": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"type": "FUNCTION",
|
|
165
|
+
"name": "advertisement.check_ad_block",
|
|
166
|
+
"brief": "Check if the ad blocker is enabled.",
|
|
167
|
+
"description": "Check if the ad blocker is enabled.",
|
|
168
|
+
"parameters": [
|
|
169
|
+
{
|
|
170
|
+
"name": "on_success",
|
|
171
|
+
"doc": "function(_, bool)",
|
|
172
|
+
"types": [
|
|
173
|
+
"(this: any, bool: boolean) => void"
|
|
174
|
+
],
|
|
175
|
+
"is_optional": "False"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "on_failure",
|
|
179
|
+
"doc": "function(_, error)",
|
|
180
|
+
"types": [
|
|
181
|
+
"(this: any, error: unknown) => void"
|
|
182
|
+
],
|
|
183
|
+
"is_optional": "False"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"returnvalues": []
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"type": "FUNCTION",
|
|
190
|
+
"name": "advertisement.hide_banner",
|
|
191
|
+
"brief": "Hide the currently displayed banner ad when it is no longer needed.",
|
|
192
|
+
"description": "Hide the currently displayed banner ad when it is no longer needed.",
|
|
193
|
+
"parameters": [],
|
|
194
|
+
"returnvalues": []
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"type": "FUNCTION",
|
|
198
|
+
"name": "advertisement.interstitial_state",
|
|
199
|
+
"brief": "Track the state of the interstitial ad to manage ad display and user experience.",
|
|
200
|
+
"description": "Track the state of the interstitial ad to manage ad display and user experience.",
|
|
201
|
+
"parameters": [],
|
|
202
|
+
"returnvalues": []
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "FUNCTION",
|
|
206
|
+
"name": "advertisement.is_banner_supported",
|
|
207
|
+
"brief": "Check if the platform supports displaying banner ads. Use this to determine if you can include banner advertisements in your game.",
|
|
208
|
+
"description": "Check if the platform supports displaying banner ads. Use this to determine if you can include banner advertisements in your game.",
|
|
209
|
+
"parameters": [],
|
|
210
|
+
"returnvalues": [
|
|
211
|
+
{
|
|
212
|
+
"name": "",
|
|
213
|
+
"doc": "",
|
|
214
|
+
"types": [
|
|
215
|
+
"string"
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "FUNCTION",
|
|
222
|
+
"name": "advertisement.is_interstitial_supported",
|
|
223
|
+
"brief": "Check if the platform supports displaying interstitial ads. Use this to determine if you can include interstitial advertisements in your game.",
|
|
224
|
+
"description": "Check if the platform supports displaying interstitial ads. Use this to determine if you can include interstitial advertisements in your game.",
|
|
225
|
+
"parameters": [],
|
|
226
|
+
"returnvalues": [
|
|
227
|
+
{
|
|
228
|
+
"name": "",
|
|
229
|
+
"doc": "",
|
|
230
|
+
"types": [
|
|
231
|
+
"string"
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"type": "FUNCTION",
|
|
238
|
+
"name": "advertisement.is_rewarded_supported",
|
|
239
|
+
"brief": "Check if the platform supports displaying rewarded ads. Use this to determine if you can include rewarded advertisements in your game.",
|
|
240
|
+
"description": "Check if the platform supports displaying rewarded ads. Use this to determine if you can include rewarded advertisements in your game.",
|
|
241
|
+
"parameters": [],
|
|
242
|
+
"returnvalues": [
|
|
243
|
+
{
|
|
244
|
+
"name": "",
|
|
245
|
+
"doc": "",
|
|
246
|
+
"types": [
|
|
247
|
+
"string"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"type": "FUNCTION",
|
|
254
|
+
"name": "advertisement.minimum_delay_between_interstitial",
|
|
255
|
+
"brief": "Minimum time interval between interstitial ad displays to comply with platform requirements and improve user experience.",
|
|
256
|
+
"description": "Minimum time interval between interstitial ad displays to comply with platform requirements and improve user experience.",
|
|
257
|
+
"parameters": [],
|
|
258
|
+
"returnvalues": [
|
|
259
|
+
{
|
|
260
|
+
"name": "",
|
|
261
|
+
"doc": "",
|
|
262
|
+
"types": [
|
|
263
|
+
"number"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"type": "FUNCTION",
|
|
270
|
+
"name": "advertisement.on",
|
|
271
|
+
"brief": "State changed events.",
|
|
272
|
+
"description": "State changed events.",
|
|
273
|
+
"parameters": [
|
|
274
|
+
{
|
|
275
|
+
"name": "event_name",
|
|
276
|
+
"doc": "",
|
|
277
|
+
"types": [
|
|
278
|
+
"string"
|
|
279
|
+
],
|
|
280
|
+
"is_optional": "False"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "callback",
|
|
284
|
+
"doc": "function(_, state)",
|
|
285
|
+
"types": [
|
|
286
|
+
"(this: any, state: unknown) => void"
|
|
287
|
+
],
|
|
288
|
+
"is_optional": "False"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"returnvalues": []
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"type": "FUNCTION",
|
|
295
|
+
"name": "advertisement.rewarded_placement",
|
|
296
|
+
"brief": "Monitor the placement of the rewarded ad to manage the reward process.",
|
|
297
|
+
"description": "Monitor the placement of the rewarded ad to manage the reward process.",
|
|
298
|
+
"parameters": [],
|
|
299
|
+
"returnvalues": []
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "FUNCTION",
|
|
303
|
+
"name": "advertisement.rewarded_state",
|
|
304
|
+
"brief": "Monitor the state of the rewarded ad (loading, opened, closed, rewarded, failed) to manage the reward process.",
|
|
305
|
+
"description": "Monitor the state of the rewarded ad (loading, opened, closed, rewarded, failed) to manage the reward process.",
|
|
306
|
+
"parameters": [],
|
|
307
|
+
"returnvalues": []
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "FUNCTION",
|
|
311
|
+
"name": "advertisement.set_minimum_delay_between_interstitial",
|
|
312
|
+
"brief": "Set the minimum time interval between interstitial ad displays to comply with platform requirements and improve user experience.",
|
|
313
|
+
"description": "Set the minimum time interval between interstitial ad displays to comply with platform requirements and improve user experience.",
|
|
314
|
+
"parameters": [
|
|
315
|
+
{
|
|
316
|
+
"name": "delay",
|
|
317
|
+
"doc": "60 from default",
|
|
318
|
+
"types": [
|
|
319
|
+
"number"
|
|
320
|
+
],
|
|
321
|
+
"is_optional": "False"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"returnvalues": []
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"type": "FUNCTION",
|
|
328
|
+
"name": "advertisement.show_banner",
|
|
329
|
+
"brief": "Display a banner ad within your game to generate revenue through advertising.",
|
|
330
|
+
"description": "Display a banner ad within your game to generate revenue through advertising.",
|
|
331
|
+
"parameters": [
|
|
332
|
+
{
|
|
333
|
+
"name": "position",
|
|
334
|
+
"doc": "",
|
|
335
|
+
"types": [
|
|
336
|
+
"string"
|
|
337
|
+
],
|
|
338
|
+
"is_optional": "False"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "placement",
|
|
342
|
+
"doc": "",
|
|
343
|
+
"types": [
|
|
344
|
+
"string"
|
|
345
|
+
],
|
|
346
|
+
"is_optional": "False"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"returnvalues": []
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"type": "FUNCTION",
|
|
353
|
+
"name": "advertisement.show_interstitial",
|
|
354
|
+
"brief": "Display an interstitial ad at appropriate moments, such as during level transitions or game over screens.",
|
|
355
|
+
"description": "Display an interstitial ad at appropriate moments, such as during level transitions or game over screens.",
|
|
356
|
+
"parameters": [
|
|
357
|
+
{
|
|
358
|
+
"name": "placement",
|
|
359
|
+
"doc": "",
|
|
360
|
+
"types": [
|
|
361
|
+
"string"
|
|
362
|
+
],
|
|
363
|
+
"is_optional": "False"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"returnvalues": []
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"type": "FUNCTION",
|
|
370
|
+
"name": "advertisement.show_rewarded",
|
|
371
|
+
"brief": "Display a rewarded ad and provide incentives to players for watching the entire ad.",
|
|
372
|
+
"description": "Display a rewarded ad and provide incentives to players for watching the entire ad.",
|
|
373
|
+
"parameters": [
|
|
374
|
+
{
|
|
375
|
+
"name": "placement",
|
|
376
|
+
"doc": "",
|
|
377
|
+
"types": [
|
|
378
|
+
"string"
|
|
379
|
+
],
|
|
380
|
+
"is_optional": "False"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"returnvalues": []
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "FUNCTION",
|
|
387
|
+
"name": "device.type",
|
|
388
|
+
"brief": "Determine the type of device (mobile, tablet, desktop, tv) the game is being played on to adjust the game`s interface and performance settings.",
|
|
389
|
+
"description": "Determine the type of device (mobile, tablet, desktop, tv) the game is being played on to adjust the game`s interface and performance settings.",
|
|
390
|
+
"parameters": [],
|
|
391
|
+
"returnvalues": [
|
|
392
|
+
{
|
|
393
|
+
"name": "",
|
|
394
|
+
"doc": "",
|
|
395
|
+
"types": [
|
|
396
|
+
"string"
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"type": "FUNCTION",
|
|
403
|
+
"name": "game.on",
|
|
404
|
+
"brief": "Check if the game tab is visible or hidden, and adjust game behavior accordingly, such as muting sound when hidden.",
|
|
405
|
+
"description": "Check if the game tab is visible or hidden, and adjust game behavior accordingly, such as muting sound when hidden.",
|
|
406
|
+
"parameters": [
|
|
407
|
+
{
|
|
408
|
+
"name": "event_name",
|
|
409
|
+
"doc": "",
|
|
410
|
+
"types": [
|
|
411
|
+
"string"
|
|
412
|
+
],
|
|
413
|
+
"is_optional": "False"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "callback",
|
|
417
|
+
"doc": "function(_, state)",
|
|
418
|
+
"types": [
|
|
419
|
+
"(this: any, state: unknown) => void"
|
|
420
|
+
],
|
|
421
|
+
"is_optional": "False"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"returnvalues": []
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"type": "FUNCTION",
|
|
428
|
+
"name": "game.visibility_state",
|
|
429
|
+
"brief": "Returns the current visibility state of the game (the tab with the game).",
|
|
430
|
+
"description": "Returns the current visibility state of the game (the tab with the game).",
|
|
431
|
+
"parameters": [],
|
|
432
|
+
"returnvalues": [
|
|
433
|
+
{
|
|
434
|
+
"name": "",
|
|
435
|
+
"doc": "",
|
|
436
|
+
"types": [
|
|
437
|
+
"string"
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "FUNCTION",
|
|
444
|
+
"name": "leaderboards.get_entries",
|
|
445
|
+
"brief": "Retrieve entries from the leaderboard, including the player's rank and score, to display a comprehensive leaderboard.",
|
|
446
|
+
"description": "Retrieve entries from the leaderboard, including the player's rank and score, to display a comprehensive leaderboard.",
|
|
447
|
+
"parameters": [
|
|
448
|
+
{
|
|
449
|
+
"name": "id",
|
|
450
|
+
"doc": "",
|
|
451
|
+
"types": [
|
|
452
|
+
"string"
|
|
453
|
+
],
|
|
454
|
+
"is_optional": "False"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "on_success",
|
|
458
|
+
"doc": "function(_, entries)",
|
|
459
|
+
"types": [
|
|
460
|
+
"(this: any, entries: unknown) => void"
|
|
461
|
+
],
|
|
462
|
+
"is_optional": "False"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "on_failure",
|
|
466
|
+
"doc": "function(_, error)",
|
|
467
|
+
"types": [
|
|
468
|
+
"(this: any, error: unknown) => void"
|
|
469
|
+
],
|
|
470
|
+
"is_optional": "False"
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"returnvalues": []
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"type": "FUNCTION",
|
|
477
|
+
"name": "leaderboards.set_score",
|
|
478
|
+
"brief": "Submit the player's score to the leaderboard to update their rank and position.",
|
|
479
|
+
"description": "Submit the player's score to the leaderboard to update their rank and position.",
|
|
480
|
+
"parameters": [
|
|
481
|
+
{
|
|
482
|
+
"name": "id",
|
|
483
|
+
"doc": "",
|
|
484
|
+
"types": [
|
|
485
|
+
"string"
|
|
486
|
+
],
|
|
487
|
+
"is_optional": "False"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "score",
|
|
491
|
+
"doc": "",
|
|
492
|
+
"types": [
|
|
493
|
+
"number"
|
|
494
|
+
],
|
|
495
|
+
"is_optional": "False"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "on_success",
|
|
499
|
+
"doc": "function()",
|
|
500
|
+
"types": [
|
|
501
|
+
"(...args: any[]) => void"
|
|
502
|
+
],
|
|
503
|
+
"is_optional": "False"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "on_failure",
|
|
507
|
+
"doc": "function(_, error)",
|
|
508
|
+
"types": [
|
|
509
|
+
"(this: any, error: unknown) => void"
|
|
510
|
+
],
|
|
511
|
+
"is_optional": "False"
|
|
512
|
+
}
|
|
513
|
+
],
|
|
514
|
+
"returnvalues": []
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"type": "FUNCTION",
|
|
518
|
+
"name": "leaderboards.show_native_popup",
|
|
519
|
+
"brief": "Show native popup leaderboard.",
|
|
520
|
+
"description": "Show native popup leaderboard.",
|
|
521
|
+
"parameters": [
|
|
522
|
+
{
|
|
523
|
+
"name": "id",
|
|
524
|
+
"doc": "",
|
|
525
|
+
"types": [
|
|
526
|
+
"string"
|
|
527
|
+
],
|
|
528
|
+
"is_optional": "False"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "on_success",
|
|
532
|
+
"doc": "function()",
|
|
533
|
+
"types": [
|
|
534
|
+
"(...args: any[]) => void"
|
|
535
|
+
],
|
|
536
|
+
"is_optional": "False"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "on_failure",
|
|
540
|
+
"doc": "function(_, error)",
|
|
541
|
+
"types": [
|
|
542
|
+
"(this: any, error: unknown) => void"
|
|
543
|
+
],
|
|
544
|
+
"is_optional": "False"
|
|
545
|
+
}
|
|
546
|
+
],
|
|
547
|
+
"returnvalues": []
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"type": "FUNCTION",
|
|
551
|
+
"name": "leaderboards.type",
|
|
552
|
+
"brief": "Check the leaderboards type on the platform.",
|
|
553
|
+
"description": "Check the leaderboards type on the platform.",
|
|
554
|
+
"parameters": [],
|
|
555
|
+
"returnvalues": [
|
|
556
|
+
{
|
|
557
|
+
"name": "",
|
|
558
|
+
"doc": "",
|
|
559
|
+
"types": [
|
|
560
|
+
"string"
|
|
561
|
+
]
|
|
562
|
+
}
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "FUNCTION",
|
|
567
|
+
"name": "payments.consume_purchase",
|
|
568
|
+
"brief": "Consume purchased items, such as in-game currency, once they are used, to manage inventory and player progression.",
|
|
569
|
+
"description": "Consume purchased items, such as in-game currency, once they are used, to manage inventory and player progression.",
|
|
570
|
+
"parameters": [
|
|
571
|
+
{
|
|
572
|
+
"name": "id",
|
|
573
|
+
"doc": "",
|
|
574
|
+
"types": [
|
|
575
|
+
"string"
|
|
576
|
+
],
|
|
577
|
+
"is_optional": "False"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"name": "on_success",
|
|
581
|
+
"doc": "function(_, purchase)",
|
|
582
|
+
"types": [
|
|
583
|
+
"(this: any, purchase: unknown) => void"
|
|
584
|
+
],
|
|
585
|
+
"is_optional": "False"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "on_failure",
|
|
589
|
+
"doc": "function(_, error)",
|
|
590
|
+
"types": [
|
|
591
|
+
"(this: any, error: unknown) => void"
|
|
592
|
+
],
|
|
593
|
+
"is_optional": "False"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"returnvalues": []
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"type": "FUNCTION",
|
|
600
|
+
"name": "payments.get_catalog",
|
|
601
|
+
"brief": "Retrieve a list of all available in-game items that players can purchase to display in the game store.",
|
|
602
|
+
"description": "Retrieve a list of all available in-game items that players can purchase to display in the game store.",
|
|
603
|
+
"parameters": [
|
|
604
|
+
{
|
|
605
|
+
"name": "on_success",
|
|
606
|
+
"doc": "function(_, catalogItems)",
|
|
607
|
+
"types": [
|
|
608
|
+
"(this: any, catalogItems: unknown) => void"
|
|
609
|
+
],
|
|
610
|
+
"is_optional": "False"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "on_failure",
|
|
614
|
+
"doc": "function(_, error)",
|
|
615
|
+
"types": [
|
|
616
|
+
"(this: any, error: unknown) => void"
|
|
617
|
+
],
|
|
618
|
+
"is_optional": "False"
|
|
619
|
+
}
|
|
620
|
+
],
|
|
621
|
+
"returnvalues": []
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"type": "FUNCTION",
|
|
625
|
+
"name": "payments.get_purchases",
|
|
626
|
+
"brief": "Retrieve a list of items that the player has purchased to manage their inventory and provide access to purchased content.",
|
|
627
|
+
"description": "Retrieve a list of items that the player has purchased to manage their inventory and provide access to purchased content.",
|
|
628
|
+
"parameters": [
|
|
629
|
+
{
|
|
630
|
+
"name": "on_success",
|
|
631
|
+
"doc": "function(nil, purchases)",
|
|
632
|
+
"types": [
|
|
633
|
+
"(this: any, purchases: unknown) => void"
|
|
634
|
+
],
|
|
635
|
+
"is_optional": "False"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "on_failure",
|
|
639
|
+
"doc": "function(_, error)",
|
|
640
|
+
"types": [
|
|
641
|
+
"(this: any, error: unknown) => void"
|
|
642
|
+
],
|
|
643
|
+
"is_optional": "False"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"returnvalues": []
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"type": "FUNCTION",
|
|
650
|
+
"name": "payments.is_supported",
|
|
651
|
+
"brief": "Check if in-game purchases are supported to offer items or upgrades within the game.",
|
|
652
|
+
"description": "Check if in-game purchases are supported to offer items or upgrades within the game.",
|
|
653
|
+
"parameters": [],
|
|
654
|
+
"returnvalues": [
|
|
655
|
+
{
|
|
656
|
+
"name": "",
|
|
657
|
+
"doc": "",
|
|
658
|
+
"types": [
|
|
659
|
+
"boolean"
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"type": "FUNCTION",
|
|
666
|
+
"name": "payments.purchase",
|
|
667
|
+
"brief": "Allow players to buy items or upgrades in your game to enhance their gameplay experience.",
|
|
668
|
+
"description": "Allow players to buy items or upgrades in your game to enhance their gameplay experience.",
|
|
669
|
+
"parameters": [
|
|
670
|
+
{
|
|
671
|
+
"name": "id",
|
|
672
|
+
"doc": "",
|
|
673
|
+
"types": [
|
|
674
|
+
"string"
|
|
675
|
+
],
|
|
676
|
+
"is_optional": "False"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "on_success",
|
|
680
|
+
"doc": "function(_, purchase)",
|
|
681
|
+
"types": [
|
|
682
|
+
"(this: any, purchase: unknown) => void"
|
|
683
|
+
],
|
|
684
|
+
"is_optional": "False"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "on_failure",
|
|
688
|
+
"doc": "function(_, error)",
|
|
689
|
+
"types": [
|
|
690
|
+
"(this: any, error: unknown) => void"
|
|
691
|
+
],
|
|
692
|
+
"is_optional": "False"
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"returnvalues": []
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"type": "FUNCTION",
|
|
699
|
+
"name": "platform.get_all_games",
|
|
700
|
+
"brief": "Get all games on the platform.",
|
|
701
|
+
"description": "Get all games on the platform.",
|
|
702
|
+
"parameters": [
|
|
703
|
+
{
|
|
704
|
+
"name": "on_success",
|
|
705
|
+
"doc": "function(_, data)",
|
|
706
|
+
"types": [
|
|
707
|
+
"(this: any, data: unknown) => void"
|
|
708
|
+
],
|
|
709
|
+
"is_optional": "False"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"name": "on_failure",
|
|
713
|
+
"doc": "function(_, error)",
|
|
714
|
+
"types": [
|
|
715
|
+
"(this: any, error: unknown) => void"
|
|
716
|
+
],
|
|
717
|
+
"is_optional": "False"
|
|
718
|
+
}
|
|
719
|
+
],
|
|
720
|
+
"returnvalues": []
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"type": "FUNCTION",
|
|
724
|
+
"name": "platform.get_game_by_id",
|
|
725
|
+
"brief": "Get game by ID on the platform.",
|
|
726
|
+
"description": "Get game by ID on the platform.",
|
|
727
|
+
"parameters": [
|
|
728
|
+
{
|
|
729
|
+
"name": "options",
|
|
730
|
+
"doc": "",
|
|
731
|
+
"types": [
|
|
732
|
+
"object"
|
|
733
|
+
],
|
|
734
|
+
"is_optional": "False"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "on_success",
|
|
738
|
+
"doc": "function(_, data)",
|
|
739
|
+
"types": [
|
|
740
|
+
"(this: any, data: unknown) => void"
|
|
741
|
+
],
|
|
742
|
+
"is_optional": "False"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "on_failure",
|
|
746
|
+
"doc": "function(_, error)",
|
|
747
|
+
"types": [
|
|
748
|
+
"(this: any, error: unknown) => void"
|
|
749
|
+
],
|
|
750
|
+
"is_optional": "False"
|
|
751
|
+
}
|
|
752
|
+
],
|
|
753
|
+
"returnvalues": []
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"type": "FUNCTION",
|
|
757
|
+
"name": "platform.get_server_time",
|
|
758
|
+
"brief": "Server Time",
|
|
759
|
+
"description": "Server Time",
|
|
760
|
+
"parameters": [
|
|
761
|
+
{
|
|
762
|
+
"name": "on_success",
|
|
763
|
+
"doc": "function(_, time)",
|
|
764
|
+
"types": [
|
|
765
|
+
"(this: any, time: unknown) => void"
|
|
766
|
+
],
|
|
767
|
+
"is_optional": "False"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "on_failure",
|
|
771
|
+
"doc": "function(_, error)",
|
|
772
|
+
"types": [
|
|
773
|
+
"(this: any, error: unknown) => void"
|
|
774
|
+
],
|
|
775
|
+
"is_optional": "False"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"returnvalues": []
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"type": "FUNCTION",
|
|
782
|
+
"name": "platform.id",
|
|
783
|
+
"brief": "Identify the platform on which the game is currently running to customize features and settings accordingly.",
|
|
784
|
+
"description": "Identify the platform on which the game is currently running to customize features and settings accordingly.",
|
|
785
|
+
"parameters": [],
|
|
786
|
+
"returnvalues": [
|
|
787
|
+
{
|
|
788
|
+
"name": "",
|
|
789
|
+
"doc": "",
|
|
790
|
+
"types": [
|
|
791
|
+
"string | undefined"
|
|
792
|
+
]
|
|
793
|
+
}
|
|
794
|
+
]
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"type": "FUNCTION",
|
|
798
|
+
"name": "platform.is_audio_enabled",
|
|
799
|
+
"brief": "Check if the audio is enabled on the platform.",
|
|
800
|
+
"description": "Check if the audio is enabled on the platform.",
|
|
801
|
+
"parameters": [],
|
|
802
|
+
"returnvalues": [
|
|
803
|
+
{
|
|
804
|
+
"name": "",
|
|
805
|
+
"doc": "",
|
|
806
|
+
"types": [
|
|
807
|
+
"boolean"
|
|
808
|
+
]
|
|
809
|
+
}
|
|
810
|
+
]
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"type": "FUNCTION",
|
|
814
|
+
"name": "platform.is_get_all_games_supported",
|
|
815
|
+
"brief": "Verify if the get_all_games is supported on the platform to ensure compatibility.",
|
|
816
|
+
"description": "Verify if the get_all_games is supported on the platform to ensure compatibility.",
|
|
817
|
+
"parameters": [],
|
|
818
|
+
"returnvalues": [
|
|
819
|
+
{
|
|
820
|
+
"name": "",
|
|
821
|
+
"doc": "",
|
|
822
|
+
"types": [
|
|
823
|
+
"boolean"
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"type": "FUNCTION",
|
|
830
|
+
"name": "platform.is_get_game_by_id_supported",
|
|
831
|
+
"brief": "Verify if the get_game_by_id is supported on the platform to ensure compatibility.",
|
|
832
|
+
"description": "Verify if the get_game_by_id is supported on the platform to ensure compatibility.",
|
|
833
|
+
"parameters": [],
|
|
834
|
+
"returnvalues": [
|
|
835
|
+
{
|
|
836
|
+
"name": "",
|
|
837
|
+
"doc": "",
|
|
838
|
+
"types": [
|
|
839
|
+
"boolean"
|
|
840
|
+
]
|
|
841
|
+
}
|
|
842
|
+
]
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"type": "FUNCTION",
|
|
846
|
+
"name": "platform.language",
|
|
847
|
+
"brief": "Get the language set by the user on the platform or the browser language if not provided by the platform, to localize game content.",
|
|
848
|
+
"description": "Get the language set by the user on the platform or the browser language if not provided by the platform, to localize game content.",
|
|
849
|
+
"parameters": [],
|
|
850
|
+
"returnvalues": [
|
|
851
|
+
{
|
|
852
|
+
"name": "",
|
|
853
|
+
"doc": "",
|
|
854
|
+
"types": [
|
|
855
|
+
"string"
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
]
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"type": "FUNCTION",
|
|
862
|
+
"name": "platform.on",
|
|
863
|
+
"brief": "State changed events.",
|
|
864
|
+
"description": "State changed events.",
|
|
865
|
+
"parameters": [
|
|
866
|
+
{
|
|
867
|
+
"name": "event_name",
|
|
868
|
+
"doc": "",
|
|
869
|
+
"types": [
|
|
870
|
+
"string"
|
|
871
|
+
],
|
|
872
|
+
"is_optional": "False"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"name": "callback",
|
|
876
|
+
"doc": "function(_, state)",
|
|
877
|
+
"types": [
|
|
878
|
+
"(this: any, state: unknown) => void"
|
|
879
|
+
],
|
|
880
|
+
"is_optional": "False"
|
|
881
|
+
}
|
|
882
|
+
],
|
|
883
|
+
"returnvalues": []
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"type": "FUNCTION",
|
|
887
|
+
"name": "platform.payload",
|
|
888
|
+
"brief": "Embed auxiliary information into the game URL to pass additional data or settings when launching the game.",
|
|
889
|
+
"description": "Embed auxiliary information into the game URL to pass additional data or settings when launching the game.",
|
|
890
|
+
"parameters": [],
|
|
891
|
+
"returnvalues": [
|
|
892
|
+
{
|
|
893
|
+
"name": "",
|
|
894
|
+
"doc": "",
|
|
895
|
+
"types": [
|
|
896
|
+
"string | undefined"
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": "FUNCTION",
|
|
903
|
+
"name": "platform.send_message",
|
|
904
|
+
"brief": "Send predefined messages to the platform to trigger specific actions or events, such as signaling that the game is ready.",
|
|
905
|
+
"description": "Send predefined messages to the platform to trigger specific actions or events, such as signaling that the game is ready.",
|
|
906
|
+
"parameters": [
|
|
907
|
+
{
|
|
908
|
+
"name": "message",
|
|
909
|
+
"doc": "One of message types: `game_ready` `in_game_loading_started`",
|
|
910
|
+
"types": [
|
|
911
|
+
"string"
|
|
912
|
+
],
|
|
913
|
+
"is_optional": "False"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "on_success",
|
|
917
|
+
"doc": "",
|
|
918
|
+
"types": [
|
|
919
|
+
"(...args: any[]) => void"
|
|
920
|
+
],
|
|
921
|
+
"is_optional": "False"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "on_failure",
|
|
925
|
+
"doc": "",
|
|
926
|
+
"types": [
|
|
927
|
+
"(this: any, error: unknown) => void"
|
|
928
|
+
],
|
|
929
|
+
"is_optional": "False"
|
|
930
|
+
}
|
|
931
|
+
],
|
|
932
|
+
"returnvalues": []
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"type": "FUNCTION",
|
|
936
|
+
"name": "platform.tld",
|
|
937
|
+
"brief": "Retrieve the top-level domain of the platform to handle domain-specific configurations and behavior.",
|
|
938
|
+
"description": "Retrieve the top-level domain of the platform to handle domain-specific configurations and behavior.",
|
|
939
|
+
"parameters": [],
|
|
940
|
+
"returnvalues": [
|
|
941
|
+
{
|
|
942
|
+
"name": "",
|
|
943
|
+
"doc": "",
|
|
944
|
+
"types": [
|
|
945
|
+
"string | undefined"
|
|
946
|
+
]
|
|
947
|
+
}
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"type": "FUNCTION",
|
|
952
|
+
"name": "player.authorize",
|
|
953
|
+
"brief": "Authorize the player on the platform to access protected features and personalize the game experience. For example, prompting the player to log in to save their progress or unlock social sharing features.",
|
|
954
|
+
"description": "Authorize the player on the platform to access protected features and personalize the game experience. For example, prompting the player to log in to save their progress or unlock social sharing features.",
|
|
955
|
+
"parameters": [
|
|
956
|
+
{
|
|
957
|
+
"name": "options",
|
|
958
|
+
"doc": "",
|
|
959
|
+
"types": [
|
|
960
|
+
"object"
|
|
961
|
+
],
|
|
962
|
+
"is_optional": "False"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "on_success",
|
|
966
|
+
"doc": "function()",
|
|
967
|
+
"types": [
|
|
968
|
+
"(...args: any[]) => void"
|
|
969
|
+
],
|
|
970
|
+
"is_optional": "False"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "on_failure",
|
|
974
|
+
"doc": "function(_, error)",
|
|
975
|
+
"types": [
|
|
976
|
+
"(this: any, error: unknown) => void"
|
|
977
|
+
],
|
|
978
|
+
"is_optional": "False"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"returnvalues": []
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"type": "FUNCTION",
|
|
985
|
+
"name": "player.extra",
|
|
986
|
+
"brief": "Get the extra information about player.",
|
|
987
|
+
"description": "Get the extra information about player.",
|
|
988
|
+
"parameters": [],
|
|
989
|
+
"returnvalues": [
|
|
990
|
+
{
|
|
991
|
+
"name": "",
|
|
992
|
+
"doc": "",
|
|
993
|
+
"types": [
|
|
994
|
+
"object"
|
|
995
|
+
]
|
|
996
|
+
}
|
|
997
|
+
]
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"type": "FUNCTION",
|
|
1001
|
+
"name": "player.id",
|
|
1002
|
+
"brief": "Get the player’s unique ID on the platform to manage user-specific data and settings. Use this ID to track player progress, achievements, and purchases.",
|
|
1003
|
+
"description": "Get the player’s unique ID on the platform to manage user-specific data and settings. Use this ID to track player progress, achievements, and purchases.",
|
|
1004
|
+
"parameters": [],
|
|
1005
|
+
"returnvalues": [
|
|
1006
|
+
{
|
|
1007
|
+
"name": "",
|
|
1008
|
+
"doc": "",
|
|
1009
|
+
"types": [
|
|
1010
|
+
"string | undefined"
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"type": "FUNCTION",
|
|
1017
|
+
"name": "player.is_authorization_supported",
|
|
1018
|
+
"brief": "Check if the platform supports player authorization to enable features that require user authentication, such as saving game progress or accessing social features.",
|
|
1019
|
+
"description": "Check if the platform supports player authorization to enable features that require user authentication, such as saving game progress or accessing social features.",
|
|
1020
|
+
"parameters": [],
|
|
1021
|
+
"returnvalues": [
|
|
1022
|
+
{
|
|
1023
|
+
"name": "",
|
|
1024
|
+
"doc": "",
|
|
1025
|
+
"types": [
|
|
1026
|
+
"boolean"
|
|
1027
|
+
]
|
|
1028
|
+
}
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"type": "FUNCTION",
|
|
1033
|
+
"name": "player.is_authorized",
|
|
1034
|
+
"brief": "Verify if the player is currently authorized on the platform. This allows you to enable personalized features, such as saving high scores or providing user-specific content.",
|
|
1035
|
+
"description": "Verify if the player is currently authorized on the platform. This allows you to enable personalized features, such as saving high scores or providing user-specific content.",
|
|
1036
|
+
"parameters": [],
|
|
1037
|
+
"returnvalues": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "",
|
|
1040
|
+
"doc": "",
|
|
1041
|
+
"types": [
|
|
1042
|
+
"boolean"
|
|
1043
|
+
]
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"type": "FUNCTION",
|
|
1049
|
+
"name": "player.name",
|
|
1050
|
+
"brief": "Retrieve the player's name to personalize the game experience. Display the name in leaderboards, friend lists, or when sending notifications and messages.",
|
|
1051
|
+
"description": "Retrieve the player's name to personalize the game experience. Display the name in leaderboards, friend lists, or when sending notifications and messages.",
|
|
1052
|
+
"parameters": [],
|
|
1053
|
+
"returnvalues": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "",
|
|
1056
|
+
"doc": "",
|
|
1057
|
+
"types": [
|
|
1058
|
+
"string | undefined"
|
|
1059
|
+
]
|
|
1060
|
+
}
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"type": "FUNCTION",
|
|
1065
|
+
"name": "player.photos",
|
|
1066
|
+
"brief": "Get the count of player avatars available. Use this to manage and display user profile images effectively, such as showing the avatar in multiplayer lobbies or profile screens.",
|
|
1067
|
+
"description": "Get the count of player avatars available. Use this to manage and display user profile images effectively, such as showing the avatar in multiplayer lobbies or profile screens.",
|
|
1068
|
+
"parameters": [],
|
|
1069
|
+
"returnvalues": [
|
|
1070
|
+
{
|
|
1071
|
+
"name": "",
|
|
1072
|
+
"doc": "",
|
|
1073
|
+
"types": [
|
|
1074
|
+
"object"
|
|
1075
|
+
]
|
|
1076
|
+
}
|
|
1077
|
+
]
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"type": "FUNCTION",
|
|
1081
|
+
"name": "remote_config.get",
|
|
1082
|
+
"brief": "Encourage players to rate your game, providing valuable feedback and improving visibility.",
|
|
1083
|
+
"description": "Encourage players to rate your game, providing valuable feedback and improving visibility.",
|
|
1084
|
+
"parameters": [
|
|
1085
|
+
{
|
|
1086
|
+
"name": "options",
|
|
1087
|
+
"doc": "",
|
|
1088
|
+
"types": [
|
|
1089
|
+
"object"
|
|
1090
|
+
],
|
|
1091
|
+
"is_optional": "False"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "on_success",
|
|
1095
|
+
"doc": "function(_, data)",
|
|
1096
|
+
"types": [
|
|
1097
|
+
"(this: any, data: unknown) => void"
|
|
1098
|
+
],
|
|
1099
|
+
"is_optional": "False"
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"name": "on_failure",
|
|
1103
|
+
"doc": "function(_)",
|
|
1104
|
+
"types": [
|
|
1105
|
+
"(this: any, error: unknown) => void"
|
|
1106
|
+
],
|
|
1107
|
+
"is_optional": "False"
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
"returnvalues": []
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"type": "FUNCTION",
|
|
1114
|
+
"name": "remote_config.is_supported",
|
|
1115
|
+
"brief": "Check if remote configuration is supported to manage game settings without releasing updates.",
|
|
1116
|
+
"description": "Check if remote configuration is supported to manage game settings without releasing updates.",
|
|
1117
|
+
"parameters": [],
|
|
1118
|
+
"returnvalues": [
|
|
1119
|
+
{
|
|
1120
|
+
"name": "",
|
|
1121
|
+
"doc": "",
|
|
1122
|
+
"types": [
|
|
1123
|
+
"boolean"
|
|
1124
|
+
]
|
|
1125
|
+
}
|
|
1126
|
+
]
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"type": "FUNCTION",
|
|
1130
|
+
"name": "social.add_to_favorites",
|
|
1131
|
+
"brief": "Allow players to bookmark your game for easy access in the future.",
|
|
1132
|
+
"description": "Allow players to bookmark your game for easy access in the future.",
|
|
1133
|
+
"parameters": [
|
|
1134
|
+
{
|
|
1135
|
+
"name": "on_success",
|
|
1136
|
+
"doc": "function(_)",
|
|
1137
|
+
"types": [
|
|
1138
|
+
"(...args: any[]) => void"
|
|
1139
|
+
],
|
|
1140
|
+
"is_optional": "False"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "on_failure",
|
|
1144
|
+
"doc": "function(_)",
|
|
1145
|
+
"types": [
|
|
1146
|
+
"(this: any, error: unknown) => void"
|
|
1147
|
+
],
|
|
1148
|
+
"is_optional": "False"
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"returnvalues": []
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"type": "FUNCTION",
|
|
1155
|
+
"name": "social.add_to_home_screen",
|
|
1156
|
+
"brief": "Enable players to add a shortcut to your game on their home screen for quick access.",
|
|
1157
|
+
"description": "Enable players to add a shortcut to your game on their home screen for quick access.",
|
|
1158
|
+
"parameters": [
|
|
1159
|
+
{
|
|
1160
|
+
"name": "on_success",
|
|
1161
|
+
"doc": "function(_)",
|
|
1162
|
+
"types": [
|
|
1163
|
+
"(...args: any[]) => void"
|
|
1164
|
+
],
|
|
1165
|
+
"is_optional": "False"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "on_failure",
|
|
1169
|
+
"doc": "function(_)",
|
|
1170
|
+
"types": [
|
|
1171
|
+
"(this: any, error: unknown) => void"
|
|
1172
|
+
],
|
|
1173
|
+
"is_optional": "False"
|
|
1174
|
+
}
|
|
1175
|
+
],
|
|
1176
|
+
"returnvalues": []
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"type": "FUNCTION",
|
|
1180
|
+
"name": "social.create_post",
|
|
1181
|
+
"brief": "Use this to let players create posts about their achievements or updates directly from the game.",
|
|
1182
|
+
"description": "Use this to let players create posts about their achievements or updates directly from the game.",
|
|
1183
|
+
"parameters": [
|
|
1184
|
+
{
|
|
1185
|
+
"name": "options",
|
|
1186
|
+
"doc": "",
|
|
1187
|
+
"types": [
|
|
1188
|
+
"object"
|
|
1189
|
+
],
|
|
1190
|
+
"is_optional": "False"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "on_success",
|
|
1194
|
+
"doc": "function(_)",
|
|
1195
|
+
"types": [
|
|
1196
|
+
"(...args: any[]) => void"
|
|
1197
|
+
],
|
|
1198
|
+
"is_optional": "False"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"name": "on_failure",
|
|
1202
|
+
"doc": "function(_)",
|
|
1203
|
+
"types": [
|
|
1204
|
+
"(this: any, error: unknown) => void"
|
|
1205
|
+
],
|
|
1206
|
+
"is_optional": "False"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"returnvalues": []
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"type": "FUNCTION",
|
|
1213
|
+
"name": "social.invite_friends",
|
|
1214
|
+
"brief": "Allow players to invite their friends to play the game, helping to grow your player base organically.",
|
|
1215
|
+
"description": "Allow players to invite their friends to play the game, helping to grow your player base organically.",
|
|
1216
|
+
"parameters": [
|
|
1217
|
+
{
|
|
1218
|
+
"name": "options",
|
|
1219
|
+
"doc": "",
|
|
1220
|
+
"types": [
|
|
1221
|
+
"object"
|
|
1222
|
+
],
|
|
1223
|
+
"is_optional": "False"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "on_success",
|
|
1227
|
+
"doc": "function(_)",
|
|
1228
|
+
"types": [
|
|
1229
|
+
"(...args: any[]) => void"
|
|
1230
|
+
],
|
|
1231
|
+
"is_optional": "False"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"name": "on_failure",
|
|
1235
|
+
"doc": "function(_)",
|
|
1236
|
+
"types": [
|
|
1237
|
+
"(this: any, error: unknown) => void"
|
|
1238
|
+
],
|
|
1239
|
+
"is_optional": "False"
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
"returnvalues": []
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"type": "FUNCTION",
|
|
1246
|
+
"name": "social.is_add_to_favorites_supported",
|
|
1247
|
+
"brief": "Check if the add to favorites functionality is supported on the platform.",
|
|
1248
|
+
"description": "Check if the add to favorites functionality is supported on the platform.",
|
|
1249
|
+
"parameters": [],
|
|
1250
|
+
"returnvalues": [
|
|
1251
|
+
{
|
|
1252
|
+
"name": "",
|
|
1253
|
+
"doc": "",
|
|
1254
|
+
"types": [
|
|
1255
|
+
"boolean"
|
|
1256
|
+
]
|
|
1257
|
+
}
|
|
1258
|
+
]
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"type": "FUNCTION",
|
|
1262
|
+
"name": "social.is_add_to_home_screen_supported",
|
|
1263
|
+
"brief": "Check if the add to home screen functionality is supported on the platform.",
|
|
1264
|
+
"description": "Check if the add to home screen functionality is supported on the platform.",
|
|
1265
|
+
"parameters": [],
|
|
1266
|
+
"returnvalues": [
|
|
1267
|
+
{
|
|
1268
|
+
"name": "",
|
|
1269
|
+
"doc": "",
|
|
1270
|
+
"types": [
|
|
1271
|
+
"boolean"
|
|
1272
|
+
]
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"type": "FUNCTION",
|
|
1278
|
+
"name": "social.is_create_post_supported",
|
|
1279
|
+
"brief": "Check if the create post functionality is supported on the platform.",
|
|
1280
|
+
"description": "Check if the create post functionality is supported on the platform.",
|
|
1281
|
+
"parameters": [],
|
|
1282
|
+
"returnvalues": [
|
|
1283
|
+
{
|
|
1284
|
+
"name": "",
|
|
1285
|
+
"doc": "",
|
|
1286
|
+
"types": [
|
|
1287
|
+
"boolean"
|
|
1288
|
+
]
|
|
1289
|
+
}
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"type": "FUNCTION",
|
|
1294
|
+
"name": "social.is_external_links_allowed",
|
|
1295
|
+
"brief": "Check if external links are allowed on the platform.",
|
|
1296
|
+
"description": "Check if external links are allowed on the platform.",
|
|
1297
|
+
"parameters": [],
|
|
1298
|
+
"returnvalues": [
|
|
1299
|
+
{
|
|
1300
|
+
"name": "",
|
|
1301
|
+
"doc": "",
|
|
1302
|
+
"types": [
|
|
1303
|
+
"boolean"
|
|
1304
|
+
]
|
|
1305
|
+
}
|
|
1306
|
+
]
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"type": "FUNCTION",
|
|
1310
|
+
"name": "social.is_invite_friends_supported",
|
|
1311
|
+
"brief": "Check if the invite friends functionality is supported on the platform.",
|
|
1312
|
+
"description": "Check if the invite friends functionality is supported on the platform.",
|
|
1313
|
+
"parameters": [],
|
|
1314
|
+
"returnvalues": [
|
|
1315
|
+
{
|
|
1316
|
+
"name": "",
|
|
1317
|
+
"doc": "",
|
|
1318
|
+
"types": [
|
|
1319
|
+
"boolean"
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"type": "FUNCTION",
|
|
1326
|
+
"name": "social.is_join_community_supported",
|
|
1327
|
+
"brief": "Check if the join community functionality is supported on the platform.",
|
|
1328
|
+
"description": "Check if the join community functionality is supported on the platform.",
|
|
1329
|
+
"parameters": [],
|
|
1330
|
+
"returnvalues": [
|
|
1331
|
+
{
|
|
1332
|
+
"name": "",
|
|
1333
|
+
"doc": "",
|
|
1334
|
+
"types": [
|
|
1335
|
+
"boolean"
|
|
1336
|
+
]
|
|
1337
|
+
}
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"type": "FUNCTION",
|
|
1342
|
+
"name": "social.is_rate_supported",
|
|
1343
|
+
"brief": "Check if the rate game functionality is supported on the platform.",
|
|
1344
|
+
"description": "Check if the rate game functionality is supported on the platform.",
|
|
1345
|
+
"parameters": [],
|
|
1346
|
+
"returnvalues": [
|
|
1347
|
+
{
|
|
1348
|
+
"name": "",
|
|
1349
|
+
"doc": "",
|
|
1350
|
+
"types": [
|
|
1351
|
+
"boolean"
|
|
1352
|
+
]
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"type": "FUNCTION",
|
|
1358
|
+
"name": "social.is_share_supported",
|
|
1359
|
+
"brief": "Check if the share functionality is supported on the platform.",
|
|
1360
|
+
"description": "Check if the share functionality is supported on the platform.",
|
|
1361
|
+
"parameters": [],
|
|
1362
|
+
"returnvalues": [
|
|
1363
|
+
{
|
|
1364
|
+
"name": "",
|
|
1365
|
+
"doc": "",
|
|
1366
|
+
"types": [
|
|
1367
|
+
"boolean"
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"type": "FUNCTION",
|
|
1374
|
+
"name": "social.join_community",
|
|
1375
|
+
"brief": "Use this to allow players to share game content or achievements on social media platforms.",
|
|
1376
|
+
"description": "Use this to allow players to share game content or achievements on social media platforms.",
|
|
1377
|
+
"parameters": [
|
|
1378
|
+
{
|
|
1379
|
+
"name": "options",
|
|
1380
|
+
"doc": "",
|
|
1381
|
+
"types": [
|
|
1382
|
+
"object"
|
|
1383
|
+
],
|
|
1384
|
+
"is_optional": "False"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"name": "on_success",
|
|
1388
|
+
"doc": "function(_)",
|
|
1389
|
+
"types": [
|
|
1390
|
+
"(...args: any[]) => void"
|
|
1391
|
+
],
|
|
1392
|
+
"is_optional": "False"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "on_failure",
|
|
1396
|
+
"doc": "function(_)",
|
|
1397
|
+
"types": [
|
|
1398
|
+
"(this: any, error: unknown) => void"
|
|
1399
|
+
],
|
|
1400
|
+
"is_optional": "False"
|
|
1401
|
+
}
|
|
1402
|
+
],
|
|
1403
|
+
"returnvalues": []
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"type": "FUNCTION",
|
|
1407
|
+
"name": "social.rate",
|
|
1408
|
+
"brief": "Encourage players to rate your game, providing valuable feedback and improving visibility.",
|
|
1409
|
+
"description": "Encourage players to rate your game, providing valuable feedback and improving visibility.",
|
|
1410
|
+
"parameters": [
|
|
1411
|
+
{
|
|
1412
|
+
"name": "on_success",
|
|
1413
|
+
"doc": "function(_)",
|
|
1414
|
+
"types": [
|
|
1415
|
+
"(...args: any[]) => void"
|
|
1416
|
+
],
|
|
1417
|
+
"is_optional": "False"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "on_failure",
|
|
1421
|
+
"doc": "function(_)",
|
|
1422
|
+
"types": [
|
|
1423
|
+
"(...args: any[]) => void"
|
|
1424
|
+
],
|
|
1425
|
+
"is_optional": "False"
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
"returnvalues": []
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"type": "FUNCTION",
|
|
1432
|
+
"name": "social.share",
|
|
1433
|
+
"brief": "Use this to allow players to share game content or achievements on social media platforms.",
|
|
1434
|
+
"description": "Use this to allow players to share game content or achievements on social media platforms.",
|
|
1435
|
+
"parameters": [
|
|
1436
|
+
{
|
|
1437
|
+
"name": "options",
|
|
1438
|
+
"doc": "",
|
|
1439
|
+
"types": [
|
|
1440
|
+
"object"
|
|
1441
|
+
],
|
|
1442
|
+
"is_optional": "False"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"name": "on_success",
|
|
1446
|
+
"doc": "function(_)",
|
|
1447
|
+
"types": [
|
|
1448
|
+
"(...args: any[]) => void"
|
|
1449
|
+
],
|
|
1450
|
+
"is_optional": "False"
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
"name": "on_failure",
|
|
1454
|
+
"doc": "function(_)",
|
|
1455
|
+
"types": [
|
|
1456
|
+
"(this: any, error: unknown) => void"
|
|
1457
|
+
],
|
|
1458
|
+
"is_optional": "False"
|
|
1459
|
+
}
|
|
1460
|
+
],
|
|
1461
|
+
"returnvalues": []
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"type": "FUNCTION",
|
|
1465
|
+
"name": "storage.default_type",
|
|
1466
|
+
"brief": "Identify the default storage type to understand where data is being saved (local or server).",
|
|
1467
|
+
"description": "Identify the default storage type to understand where data is being saved (local or server).",
|
|
1468
|
+
"parameters": [],
|
|
1469
|
+
"returnvalues": [
|
|
1470
|
+
{
|
|
1471
|
+
"name": "",
|
|
1472
|
+
"doc": "",
|
|
1473
|
+
"types": [
|
|
1474
|
+
"string"
|
|
1475
|
+
]
|
|
1476
|
+
}
|
|
1477
|
+
]
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"type": "FUNCTION",
|
|
1481
|
+
"name": "storage.delete_",
|
|
1482
|
+
"brief": "Remove data from the specified storage by key to manage player data and settings effectively.",
|
|
1483
|
+
"description": "Remove data from the specified storage by key to manage player data and settings effectively.",
|
|
1484
|
+
"parameters": [
|
|
1485
|
+
{
|
|
1486
|
+
"name": "table_keys",
|
|
1487
|
+
"doc": "",
|
|
1488
|
+
"types": [
|
|
1489
|
+
"object"
|
|
1490
|
+
],
|
|
1491
|
+
"is_optional": "False"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "on_success",
|
|
1495
|
+
"doc": "function(_)",
|
|
1496
|
+
"types": [
|
|
1497
|
+
"(...args: any[]) => void"
|
|
1498
|
+
],
|
|
1499
|
+
"is_optional": "False"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"name": "on_failure",
|
|
1503
|
+
"doc": "function(_, error)",
|
|
1504
|
+
"types": [
|
|
1505
|
+
"(this: any, error: unknown) => void"
|
|
1506
|
+
],
|
|
1507
|
+
"is_optional": "False"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"name": "storage_type",
|
|
1511
|
+
"doc": "",
|
|
1512
|
+
"types": [
|
|
1513
|
+
"string"
|
|
1514
|
+
],
|
|
1515
|
+
"is_optional": "False"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
"returnvalues": []
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"type": "FUNCTION",
|
|
1522
|
+
"name": "storage.get",
|
|
1523
|
+
"brief": "Retrieve stored data based on a key or multiple keys to restore player progress or settings.",
|
|
1524
|
+
"description": "Retrieve stored data based on a key or multiple keys to restore player progress or settings.",
|
|
1525
|
+
"parameters": [
|
|
1526
|
+
{
|
|
1527
|
+
"name": "table_keys",
|
|
1528
|
+
"doc": "",
|
|
1529
|
+
"types": [
|
|
1530
|
+
"object"
|
|
1531
|
+
],
|
|
1532
|
+
"is_optional": "False"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "on_success",
|
|
1536
|
+
"doc": "function(_, data)",
|
|
1537
|
+
"types": [
|
|
1538
|
+
"(this: any, data: unknown) => void"
|
|
1539
|
+
],
|
|
1540
|
+
"is_optional": "False"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "on_failure",
|
|
1544
|
+
"doc": "function(_, error)",
|
|
1545
|
+
"types": [
|
|
1546
|
+
"(this: any, error: unknown) => void"
|
|
1547
|
+
],
|
|
1548
|
+
"is_optional": "False"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "storage_type",
|
|
1552
|
+
"doc": "",
|
|
1553
|
+
"types": [
|
|
1554
|
+
"string"
|
|
1555
|
+
],
|
|
1556
|
+
"is_optional": "False"
|
|
1557
|
+
}
|
|
1558
|
+
],
|
|
1559
|
+
"returnvalues": []
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"type": "FUNCTION",
|
|
1563
|
+
"name": "storage.is_available",
|
|
1564
|
+
"brief": "Check if the specified storage type is currently available for use to manage data storage effectively.",
|
|
1565
|
+
"description": "Check if the specified storage type is currently available for use to manage data storage effectively.",
|
|
1566
|
+
"parameters": [
|
|
1567
|
+
{
|
|
1568
|
+
"name": "storage_type",
|
|
1569
|
+
"doc": "",
|
|
1570
|
+
"types": [
|
|
1571
|
+
"string"
|
|
1572
|
+
],
|
|
1573
|
+
"is_optional": "False"
|
|
1574
|
+
}
|
|
1575
|
+
],
|
|
1576
|
+
"returnvalues": [
|
|
1577
|
+
{
|
|
1578
|
+
"name": "",
|
|
1579
|
+
"doc": "",
|
|
1580
|
+
"types": [
|
|
1581
|
+
"boolean"
|
|
1582
|
+
]
|
|
1583
|
+
}
|
|
1584
|
+
]
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"type": "FUNCTION",
|
|
1588
|
+
"name": "storage.is_supported",
|
|
1589
|
+
"brief": "Verify if the specified storage type is supported on the platform to ensure compatibility.",
|
|
1590
|
+
"description": "Verify if the specified storage type is supported on the platform to ensure compatibility.",
|
|
1591
|
+
"parameters": [
|
|
1592
|
+
{
|
|
1593
|
+
"name": "storage_type",
|
|
1594
|
+
"doc": "",
|
|
1595
|
+
"types": [
|
|
1596
|
+
"string"
|
|
1597
|
+
],
|
|
1598
|
+
"is_optional": "False"
|
|
1599
|
+
}
|
|
1600
|
+
],
|
|
1601
|
+
"returnvalues": [
|
|
1602
|
+
{
|
|
1603
|
+
"name": "",
|
|
1604
|
+
"doc": "",
|
|
1605
|
+
"types": [
|
|
1606
|
+
"boolean"
|
|
1607
|
+
]
|
|
1608
|
+
}
|
|
1609
|
+
]
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"type": "FUNCTION",
|
|
1613
|
+
"name": "storage.set",
|
|
1614
|
+
"brief": "Save data to the specified storage with a key to retain player progress or settings.",
|
|
1615
|
+
"description": "Save data to the specified storage with a key to retain player progress or settings.",
|
|
1616
|
+
"parameters": [
|
|
1617
|
+
{
|
|
1618
|
+
"name": "table_data",
|
|
1619
|
+
"doc": "",
|
|
1620
|
+
"types": [
|
|
1621
|
+
"object"
|
|
1622
|
+
],
|
|
1623
|
+
"is_optional": "False"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "on_success",
|
|
1627
|
+
"doc": "function(_)",
|
|
1628
|
+
"types": [
|
|
1629
|
+
"(...args: any[]) => void"
|
|
1630
|
+
],
|
|
1631
|
+
"is_optional": "False"
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"name": "on_failure",
|
|
1635
|
+
"doc": "function(_, error)",
|
|
1636
|
+
"types": [
|
|
1637
|
+
"(this: any, error: unknown) => void"
|
|
1638
|
+
],
|
|
1639
|
+
"is_optional": "False"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"name": "storage_type",
|
|
1643
|
+
"doc": "",
|
|
1644
|
+
"types": [
|
|
1645
|
+
"string"
|
|
1646
|
+
],
|
|
1647
|
+
"is_optional": "False"
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
"returnvalues": []
|
|
1651
|
+
}
|
|
1652
|
+
]
|
|
1653
|
+
}
|