@defold-typescript/types 0.26.0 → 0.28.0
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/api-availability.json +307 -307
- package/api-signatures.json +1311 -0
- package/api-targets.json +342 -0
- package/examples/translations.json +1984 -0
- package/fixtures/messages_doc.json +880 -0
- package/generated/versions/defold-1.12.4/gui.d.ts +43 -43
- package/generated/versions/defold-1.12.4/liveupdate.d.ts +22 -22
- package/generated/versions/defold-1.12.4/physics.d.ts +78 -75
- package/generated/versions/defold-1.12.4/render.d.ts +75 -55
- package/generated/versions/defold-1.12.4/resource.d.ts +187 -175
- package/generated/versions/defold-1.13.0/b2d.d.ts +33 -0
- package/generated/versions/defold-1.13.0/b2d_body.d.ts +676 -0
- package/generated/versions/defold-1.13.0/b2d_chain.d.ts +106 -0
- package/generated/versions/defold-1.13.0/b2d_fixture.d.ts +155 -0
- package/generated/versions/defold-1.13.0/b2d_joint.d.ts +823 -0
- package/generated/versions/defold-1.13.0/b2d_shape.d.ts +215 -0
- package/generated/versions/defold-1.13.0/b2d_world.d.ts +314 -0
- package/generated/versions/defold-1.13.0/buffer.d.ts +176 -0
- package/generated/versions/defold-1.13.0/camera.d.ts +302 -0
- package/generated/versions/defold-1.13.0/collectionfactory.d.ts +146 -0
- package/generated/versions/defold-1.13.0/collectionproxy.d.ts +71 -0
- package/generated/versions/defold-1.13.0/compute.d.ts +306 -0
- package/generated/versions/defold-1.13.0/crash.d.ts +143 -0
- package/generated/versions/defold-1.13.0/editor-vm/http.d.ts +56 -0
- package/generated/versions/defold-1.13.0/editor-vm/json.d.ts +10 -0
- package/generated/versions/defold-1.13.0/editor-vm/localization.d.ts +42 -0
- package/generated/versions/defold-1.13.0/editor-vm/tilemap_tiles.d.ts +80 -0
- package/generated/versions/defold-1.13.0/editor-vm/zip.d.ts +10 -0
- package/generated/versions/defold-1.13.0/editor-vm/zlib.d.ts +24 -0
- package/generated/versions/defold-1.13.0/editor.d.ts +1092 -0
- package/generated/versions/defold-1.13.0/factory.d.ts +123 -0
- package/generated/versions/defold-1.13.0/font.d.ts +81 -0
- package/generated/versions/defold-1.13.0/go.d.ts +1054 -0
- package/generated/versions/defold-1.13.0/graphics.d.ts +321 -0
- package/generated/versions/defold-1.13.0/gui.d.ts +2370 -0
- package/generated/versions/defold-1.13.0/html5.d.ts +53 -0
- package/generated/versions/defold-1.13.0/http.d.ts +84 -0
- package/generated/versions/defold-1.13.0/iac.d.ts +18 -0
- package/generated/versions/defold-1.13.0/iap.d.ts +60 -0
- package/generated/versions/defold-1.13.0/image.d.ts +139 -0
- package/generated/versions/defold-1.13.0/index.d.ts +48 -0
- package/generated/versions/defold-1.13.0/json.d.ts +76 -0
- package/generated/versions/defold-1.13.0/kinds/editor-script.d.ts +13 -0
- package/generated/versions/defold-1.13.0/label.d.ts +94 -0
- package/generated/versions/defold-1.13.0/liveupdate.d.ts +140 -0
- package/generated/versions/defold-1.13.0/material.d.ts +444 -0
- package/generated/versions/defold-1.13.0/model.d.ts +246 -0
- package/generated/versions/defold-1.13.0/msg.d.ts +10 -0
- package/generated/versions/defold-1.13.0/particlefx.d.ts +166 -0
- package/generated/versions/defold-1.13.0/physics.d.ts +548 -0
- package/generated/versions/defold-1.13.0/profiler.d.ts +233 -0
- package/generated/versions/defold-1.13.0/push.d.ts +66 -0
- package/generated/versions/defold-1.13.0/render.d.ts +1185 -0
- package/generated/versions/defold-1.13.0/resource.d.ts +1530 -0
- package/generated/versions/defold-1.13.0/socket.d.ts +795 -0
- package/generated/versions/defold-1.13.0/sound.d.ts +291 -0
- package/generated/versions/defold-1.13.0/sprite.d.ts +157 -0
- package/generated/versions/defold-1.13.0/sys.d.ts +695 -0
- package/generated/versions/defold-1.13.0/tilemap.d.ts +195 -0
- package/generated/versions/defold-1.13.0/timer.d.ts +114 -0
- package/generated/versions/defold-1.13.0/types.d.ts +61 -0
- package/generated/versions/defold-1.13.0/vmath.d.ts +806 -0
- package/generated/versions/defold-1.13.0/webview.d.ts +68 -0
- package/generated/versions/defold-1.13.0/window.d.ts +198 -0
- package/generated/versions/defold-1.13.0/zlib.d.ts +40 -0
- package/index.d.ts +4 -84
- package/package.json +11 -3
- package/scripts/import-defold-release.ts +18 -1
- package/src/example-store.ts +5 -0
- package/scripts/lua-types-signature-index.ts +0 -151
|
@@ -0,0 +1,880 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"namespace": "builtin_messages",
|
|
4
|
+
"version": "1.13.0",
|
|
5
|
+
"description": "Defold's built-in message ids and the payload shape each one carries."
|
|
6
|
+
},
|
|
7
|
+
"messages": [
|
|
8
|
+
{
|
|
9
|
+
"name": "acquire_input_focus",
|
|
10
|
+
"origin": "go",
|
|
11
|
+
"description": "Acquire input focus for the current game object.",
|
|
12
|
+
"payload": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "release_input_focus",
|
|
16
|
+
"origin": "go",
|
|
17
|
+
"description": "Release input focus held by the current game object.",
|
|
18
|
+
"payload": []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "enable",
|
|
22
|
+
"origin": "go",
|
|
23
|
+
"description": "Enable the receiving component.",
|
|
24
|
+
"payload": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "disable",
|
|
28
|
+
"origin": "go",
|
|
29
|
+
"description": "Disable the receiving component.",
|
|
30
|
+
"payload": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "set_parent",
|
|
34
|
+
"origin": "go",
|
|
35
|
+
"description": "Re-parent the receiving game object.",
|
|
36
|
+
"payload": [
|
|
37
|
+
{
|
|
38
|
+
"name": "parent_id",
|
|
39
|
+
"types": ["hash"],
|
|
40
|
+
"optional": true,
|
|
41
|
+
"doc": "Hash of the new parent (omit or nil to clear)."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "keep_world_transform",
|
|
45
|
+
"types": ["0", "1"],
|
|
46
|
+
"optional": true,
|
|
47
|
+
"doc": "1 to preserve world transform; 0 (default) to keep local transform."
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "play_animation",
|
|
53
|
+
"origin": "sprite",
|
|
54
|
+
"description": "Play a flipbook/model animation.",
|
|
55
|
+
"payload": [
|
|
56
|
+
{
|
|
57
|
+
"name": "id",
|
|
58
|
+
"types": ["hash"],
|
|
59
|
+
"optional": false,
|
|
60
|
+
"doc": "Hashed animation id."
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "animation_done",
|
|
66
|
+
"origin": "sprite",
|
|
67
|
+
"description": "Sent back when a one-shot animation finishes.",
|
|
68
|
+
"payload": [
|
|
69
|
+
{
|
|
70
|
+
"name": "current_tile",
|
|
71
|
+
"types": ["number"],
|
|
72
|
+
"optional": false,
|
|
73
|
+
"doc": "Tile index when the animation ended."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "id",
|
|
77
|
+
"types": ["hash"],
|
|
78
|
+
"optional": false,
|
|
79
|
+
"doc": "Hashed animation id that finished."
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "collision_response",
|
|
85
|
+
"origin": "physics",
|
|
86
|
+
"description": "Reported once per collision pair per frame.",
|
|
87
|
+
"payload": [
|
|
88
|
+
{
|
|
89
|
+
"name": "other_id",
|
|
90
|
+
"types": ["hash"],
|
|
91
|
+
"optional": false,
|
|
92
|
+
"doc": "Id of the other colliding object."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "other_position",
|
|
96
|
+
"types": ["vector3"],
|
|
97
|
+
"optional": false,
|
|
98
|
+
"doc": "World position of the other object."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "other_group",
|
|
102
|
+
"types": ["hash"],
|
|
103
|
+
"optional": false,
|
|
104
|
+
"doc": "Collision group of the other object."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "own_group",
|
|
108
|
+
"types": ["hash"],
|
|
109
|
+
"optional": false,
|
|
110
|
+
"doc": "Collision group of this object."
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "trigger_response",
|
|
116
|
+
"origin": "physics",
|
|
117
|
+
"description": "Reported when a trigger overlap begins or ends.",
|
|
118
|
+
"payload": [
|
|
119
|
+
{
|
|
120
|
+
"name": "other_id",
|
|
121
|
+
"types": ["hash"],
|
|
122
|
+
"optional": false,
|
|
123
|
+
"doc": "Id of the object entering/leaving the trigger."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "enter",
|
|
127
|
+
"types": ["boolean"],
|
|
128
|
+
"optional": false,
|
|
129
|
+
"doc": "true on enter, false on exit."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "other_group",
|
|
133
|
+
"types": ["hash"],
|
|
134
|
+
"optional": false,
|
|
135
|
+
"doc": "Collision group of the other object."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "own_group",
|
|
139
|
+
"types": ["hash"],
|
|
140
|
+
"optional": false,
|
|
141
|
+
"doc": "Collision group of this object."
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "contact_point_response",
|
|
147
|
+
"origin": "physics",
|
|
148
|
+
"description": "Reported once per contact point per frame.",
|
|
149
|
+
"payload": [
|
|
150
|
+
{
|
|
151
|
+
"name": "position",
|
|
152
|
+
"types": ["vector3"],
|
|
153
|
+
"optional": false,
|
|
154
|
+
"doc": "Contact point position."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "normal",
|
|
158
|
+
"types": ["vector3"],
|
|
159
|
+
"optional": false,
|
|
160
|
+
"doc": "Contact normal."
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "relative_velocity",
|
|
164
|
+
"types": ["vector3"],
|
|
165
|
+
"optional": false,
|
|
166
|
+
"doc": "Relative velocity at the contact point."
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "distance",
|
|
170
|
+
"types": ["number"],
|
|
171
|
+
"optional": false,
|
|
172
|
+
"doc": "Penetration distance."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "applied_impulse",
|
|
176
|
+
"types": ["number"],
|
|
177
|
+
"optional": false,
|
|
178
|
+
"doc": "Impulse applied to resolve the contact."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "life_time",
|
|
182
|
+
"types": ["number"],
|
|
183
|
+
"optional": false,
|
|
184
|
+
"doc": "Contact life time."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "mass",
|
|
188
|
+
"types": ["number"],
|
|
189
|
+
"optional": false,
|
|
190
|
+
"doc": "Mass of this object."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "other_mass",
|
|
194
|
+
"types": ["number"],
|
|
195
|
+
"optional": false,
|
|
196
|
+
"doc": "Mass of the other object."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "other_id",
|
|
200
|
+
"types": ["hash"],
|
|
201
|
+
"optional": false,
|
|
202
|
+
"doc": "Id of the other object."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "other_position",
|
|
206
|
+
"types": ["vector3"],
|
|
207
|
+
"optional": false,
|
|
208
|
+
"doc": "World position of the other object."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "other_group",
|
|
212
|
+
"types": ["hash"],
|
|
213
|
+
"optional": false,
|
|
214
|
+
"doc": "Collision group of the other object."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "own_group",
|
|
218
|
+
"types": ["hash"],
|
|
219
|
+
"optional": false,
|
|
220
|
+
"doc": "Collision group of this object."
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "apply_force",
|
|
226
|
+
"origin": "physics",
|
|
227
|
+
"description": "Apply a force at a world position on a collision object.",
|
|
228
|
+
"payload": [
|
|
229
|
+
{
|
|
230
|
+
"name": "force",
|
|
231
|
+
"types": ["vector3"],
|
|
232
|
+
"optional": false,
|
|
233
|
+
"doc": "Force vector in Newtons."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "position",
|
|
237
|
+
"types": ["vector3"],
|
|
238
|
+
"optional": false,
|
|
239
|
+
"doc": "World position at which the force is applied."
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "ray_cast_response",
|
|
245
|
+
"origin": "physics",
|
|
246
|
+
"description": "Reported when an asynchronous ray cast hits a collision object.",
|
|
247
|
+
"payload": [
|
|
248
|
+
{
|
|
249
|
+
"name": "fraction",
|
|
250
|
+
"types": ["number"],
|
|
251
|
+
"optional": false,
|
|
252
|
+
"doc": "Fraction of the ray length at which the hit occurred (0..1)."
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "position",
|
|
256
|
+
"types": ["vector3"],
|
|
257
|
+
"optional": false,
|
|
258
|
+
"doc": "World position of the hit."
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "normal",
|
|
262
|
+
"types": ["vector3"],
|
|
263
|
+
"optional": false,
|
|
264
|
+
"doc": "World-space surface normal at the hit."
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "id",
|
|
268
|
+
"types": ["hash"],
|
|
269
|
+
"optional": false,
|
|
270
|
+
"doc": "Id of the hit collision object."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "group",
|
|
274
|
+
"types": ["hash"],
|
|
275
|
+
"optional": false,
|
|
276
|
+
"doc": "Collision group of the hit object."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "request_id",
|
|
280
|
+
"types": ["number"],
|
|
281
|
+
"optional": false,
|
|
282
|
+
"doc": "Request id passed to physics.raycast_async."
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "ray_cast_missed",
|
|
288
|
+
"origin": "physics",
|
|
289
|
+
"description": "Reported when an asynchronous ray cast hits nothing.",
|
|
290
|
+
"payload": [
|
|
291
|
+
{
|
|
292
|
+
"name": "group",
|
|
293
|
+
"types": ["hash"],
|
|
294
|
+
"optional": false,
|
|
295
|
+
"doc": "Collision group mask used for the ray cast."
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "request_id",
|
|
299
|
+
"types": ["number"],
|
|
300
|
+
"optional": false,
|
|
301
|
+
"doc": "Request id passed to physics.raycast_async."
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "proxy_loaded",
|
|
307
|
+
"origin": "collectionproxy",
|
|
308
|
+
"description": "Sent by a collection proxy once its collection finished loading.",
|
|
309
|
+
"payload": []
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "load",
|
|
313
|
+
"origin": "collectionproxy",
|
|
314
|
+
"description": "Tell a collection proxy to start loading its collection.",
|
|
315
|
+
"payload": []
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "unload",
|
|
319
|
+
"origin": "collectionproxy",
|
|
320
|
+
"description": "Tell a collection proxy to unload its collection.",
|
|
321
|
+
"payload": []
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "init",
|
|
325
|
+
"origin": "collectionproxy",
|
|
326
|
+
"description": "Initialize the loaded collection inside a collection proxy.",
|
|
327
|
+
"payload": []
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "final",
|
|
331
|
+
"origin": "collectionproxy",
|
|
332
|
+
"description": "Finalize the loaded collection inside a collection proxy.",
|
|
333
|
+
"payload": []
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "play_sound",
|
|
337
|
+
"origin": "sound",
|
|
338
|
+
"description": "Play the sound attached to the receiving sound component.",
|
|
339
|
+
"payload": [
|
|
340
|
+
{
|
|
341
|
+
"name": "delay",
|
|
342
|
+
"types": ["number"],
|
|
343
|
+
"optional": true,
|
|
344
|
+
"doc": "Delay in seconds before the sound starts (default 0)."
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "gain",
|
|
348
|
+
"types": ["number"],
|
|
349
|
+
"optional": true,
|
|
350
|
+
"doc": "Sound gain between 0 and 1 (default 1)."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "play_id",
|
|
354
|
+
"types": ["number"],
|
|
355
|
+
"optional": true,
|
|
356
|
+
"doc": "Caller-chosen id echoed back in sound_done / sound_stopped."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "start_time",
|
|
360
|
+
"types": ["number"],
|
|
361
|
+
"optional": true,
|
|
362
|
+
"doc": "Optional start offset (seconds). Mutually exclusive with start_frame."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "start_frame",
|
|
366
|
+
"types": ["number"],
|
|
367
|
+
"optional": true,
|
|
368
|
+
"doc": "Optional start offset (frames). If both are provided, start_frame is used."
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "stop_sound",
|
|
374
|
+
"origin": "sound",
|
|
375
|
+
"description": "Stop all instances playing on the receiving sound component.",
|
|
376
|
+
"payload": []
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "set_gain",
|
|
380
|
+
"origin": "sound",
|
|
381
|
+
"description": "Set the gain on the receiving sound component.",
|
|
382
|
+
"payload": [
|
|
383
|
+
{
|
|
384
|
+
"name": "gain",
|
|
385
|
+
"types": ["number"],
|
|
386
|
+
"optional": false,
|
|
387
|
+
"doc": "Target gain between 0 and 1."
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"name": "sound_done",
|
|
393
|
+
"origin": "sound",
|
|
394
|
+
"description": "Sent back when a sound started with play_sound finishes playing.",
|
|
395
|
+
"payload": [
|
|
396
|
+
{
|
|
397
|
+
"name": "play_id",
|
|
398
|
+
"types": ["number"],
|
|
399
|
+
"optional": false,
|
|
400
|
+
"doc": "The id passed to play_sound."
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "sound_stopped",
|
|
406
|
+
"origin": "sound",
|
|
407
|
+
"description": "Sent back when a sound started with play_sound is stopped via stop_sound.",
|
|
408
|
+
"payload": [
|
|
409
|
+
{
|
|
410
|
+
"name": "play_id",
|
|
411
|
+
"types": ["number"],
|
|
412
|
+
"optional": false,
|
|
413
|
+
"doc": "The id passed to play_sound."
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "model_animation_done",
|
|
419
|
+
"origin": "model",
|
|
420
|
+
"description": "Sent back when a play-once animation started with model.play_anim finishes.",
|
|
421
|
+
"payload": [
|
|
422
|
+
{
|
|
423
|
+
"name": "animation_id",
|
|
424
|
+
"types": ["hash"],
|
|
425
|
+
"optional": false,
|
|
426
|
+
"doc": "Hashed id of the completed animation."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "playback",
|
|
430
|
+
"types": ["number"],
|
|
431
|
+
"optional": false,
|
|
432
|
+
"doc": "Playback mode constant of the completed animation."
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "set_time_step",
|
|
438
|
+
"origin": "collectionproxy",
|
|
439
|
+
"description": "Set the time-step scaling and mode for the collection inside a collection proxy.",
|
|
440
|
+
"payload": [
|
|
441
|
+
{
|
|
442
|
+
"name": "factor",
|
|
443
|
+
"types": ["number"],
|
|
444
|
+
"optional": false,
|
|
445
|
+
"doc": "Time-step scaling factor."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"name": "mode",
|
|
449
|
+
"types": ["number"],
|
|
450
|
+
"optional": false,
|
|
451
|
+
"doc": "Time-step mode: 0 for continuous, 1 for discrete."
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "async_load",
|
|
457
|
+
"origin": "collectionproxy",
|
|
458
|
+
"description": "Tell a collection proxy to start loading its collection in the background.",
|
|
459
|
+
"payload": []
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "proxy_unloaded",
|
|
463
|
+
"origin": "collectionproxy",
|
|
464
|
+
"description": "Sent back to the initiating script once a collection proxy finished unloading its collection.",
|
|
465
|
+
"payload": []
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "clear_color",
|
|
469
|
+
"origin": "render",
|
|
470
|
+
"description": "Set the colour the render target is cleared to.",
|
|
471
|
+
"payload": [
|
|
472
|
+
{
|
|
473
|
+
"name": "color",
|
|
474
|
+
"types": ["vector4"],
|
|
475
|
+
"optional": false,
|
|
476
|
+
"doc": "Clear colour as an RGBA vector4."
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "set_view_projection",
|
|
482
|
+
"origin": "render",
|
|
483
|
+
"description": "Posted automatically by camera components to the render script with the active view and projection matrices.",
|
|
484
|
+
"payload": [
|
|
485
|
+
{
|
|
486
|
+
"name": "id",
|
|
487
|
+
"types": ["hash"],
|
|
488
|
+
"optional": false,
|
|
489
|
+
"doc": "Id of the camera component that posted the matrices."
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "view",
|
|
493
|
+
"types": ["matrix4"],
|
|
494
|
+
"optional": false,
|
|
495
|
+
"doc": "View matrix of the camera."
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "projection",
|
|
499
|
+
"types": ["matrix4"],
|
|
500
|
+
"optional": false,
|
|
501
|
+
"doc": "Projection matrix of the camera."
|
|
502
|
+
}
|
|
503
|
+
]
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "draw_line",
|
|
507
|
+
"origin": "render",
|
|
508
|
+
"description": "Request a debug line to be drawn for the current frame.",
|
|
509
|
+
"payload": [
|
|
510
|
+
{
|
|
511
|
+
"name": "start_point",
|
|
512
|
+
"types": ["vector3"],
|
|
513
|
+
"optional": false,
|
|
514
|
+
"doc": "World-space start point of the line."
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"name": "end_point",
|
|
518
|
+
"types": ["vector3"],
|
|
519
|
+
"optional": false,
|
|
520
|
+
"doc": "World-space end point of the line."
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "color",
|
|
524
|
+
"types": ["vector4"],
|
|
525
|
+
"optional": false,
|
|
526
|
+
"doc": "Line colour as an RGBA vector4."
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "draw_debug_text",
|
|
532
|
+
"origin": "render",
|
|
533
|
+
"description": "Request debug text to be drawn for the current frame.",
|
|
534
|
+
"payload": [
|
|
535
|
+
{
|
|
536
|
+
"name": "position",
|
|
537
|
+
"types": ["vector3"],
|
|
538
|
+
"optional": false,
|
|
539
|
+
"doc": "World-space position to draw the text at."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "text",
|
|
543
|
+
"types": ["string"],
|
|
544
|
+
"optional": false,
|
|
545
|
+
"doc": "The text to draw."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "color",
|
|
549
|
+
"types": ["vector4"],
|
|
550
|
+
"optional": false,
|
|
551
|
+
"doc": "Text colour as an RGBA vector4."
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "window_resized",
|
|
557
|
+
"origin": "render",
|
|
558
|
+
"description": "Received by the render script and listeners when the application window changes size.",
|
|
559
|
+
"payload": [
|
|
560
|
+
{
|
|
561
|
+
"name": "height",
|
|
562
|
+
"types": ["number"],
|
|
563
|
+
"optional": false,
|
|
564
|
+
"doc": "New window height in pixels."
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "width",
|
|
568
|
+
"types": ["number"],
|
|
569
|
+
"optional": false,
|
|
570
|
+
"doc": "New window width in pixels."
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "layout_changed",
|
|
576
|
+
"origin": "gui",
|
|
577
|
+
"description": "Sent to a gui script when the layout changes, for example when the orientation changes or the device profile is switched.",
|
|
578
|
+
"payload": [
|
|
579
|
+
{
|
|
580
|
+
"name": "id",
|
|
581
|
+
"types": ["hash"],
|
|
582
|
+
"optional": false,
|
|
583
|
+
"doc": "The id of the layout the gui switched to."
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "previous_id",
|
|
587
|
+
"types": ["hash"],
|
|
588
|
+
"optional": false,
|
|
589
|
+
"doc": "The id of the layout the gui switched from."
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "set_camera",
|
|
595
|
+
"origin": "camera",
|
|
596
|
+
"description": "Post this message to a camera-component to set its properties at run-time.",
|
|
597
|
+
"payload": [
|
|
598
|
+
{
|
|
599
|
+
"name": "aspect_ratio",
|
|
600
|
+
"types": ["number"],
|
|
601
|
+
"optional": false,
|
|
602
|
+
"doc": "aspect ratio of the screen (width divided by height)"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "fov",
|
|
606
|
+
"types": ["number"],
|
|
607
|
+
"optional": false,
|
|
608
|
+
"doc": "field of view of the lens, measured as the angle in radians between the right and left edge"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"name": "near_z",
|
|
612
|
+
"types": ["number"],
|
|
613
|
+
"optional": false,
|
|
614
|
+
"doc": "position of the near clipping plane (distance from camera along relative z)"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"name": "far_z",
|
|
618
|
+
"types": ["number"],
|
|
619
|
+
"optional": false,
|
|
620
|
+
"doc": "position of the far clipping plane (distance from camera along relative z)"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "orthographic_projection",
|
|
624
|
+
"types": ["boolean"],
|
|
625
|
+
"optional": false,
|
|
626
|
+
"doc": "set to use an orthographic projection"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "orthographic_zoom",
|
|
630
|
+
"types": ["number"],
|
|
631
|
+
"optional": false,
|
|
632
|
+
"doc": "positive zoom multiplier when the camera is using an orthographic projection"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "orthographic_mode",
|
|
636
|
+
"types": ["number"],
|
|
637
|
+
"optional": false,
|
|
638
|
+
"doc": "orthographic zoom behavior when orthographic_projection is enabled"
|
|
639
|
+
}
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "acquire_camera_focus",
|
|
644
|
+
"origin": "camera",
|
|
645
|
+
"description": "Post this message to a camera-component to activate it.\nSeveral cameras can be active at the same time, but only the camera that was last activated will be used for rendering.\nWhen the camera is deactivated (see <code>release_camera_focus</code>), the previously activated camera will again be used for rendering automatically.\nThe reason it is called \"camera focus\" is the similarity to how acquiring input focus works (see <code>acquire_input_focus</code>).",
|
|
646
|
+
"payload": []
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "release_camera_focus",
|
|
650
|
+
"origin": "camera",
|
|
651
|
+
"description": "Post this message to a camera-component to deactivate it. The camera is then removed from the active cameras.\nSee <code>acquire_camera_focus</code> for more information how the active cameras are used in rendering.",
|
|
652
|
+
"payload": []
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "contact_point_event",
|
|
656
|
+
"origin": "physics",
|
|
657
|
+
"description": "See <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a>.\nThis message is sent to a function specified in <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a> when\na collision object has contact points with another collision object.\nSince multiple contact points can occur for two colliding objects, this event can be sent\nmultiple times in the same frame for the same two colliding objects. To only be notified once\nwhen the collision occurs, check for the <a href=\"#collision_event\">collision_event</a> event instead.",
|
|
658
|
+
"payload": [
|
|
659
|
+
{
|
|
660
|
+
"name": "applied_impulse",
|
|
661
|
+
"types": ["number"],
|
|
662
|
+
"optional": false,
|
|
663
|
+
"doc": "the impulse the contact resulted in"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "distance",
|
|
667
|
+
"types": ["number"],
|
|
668
|
+
"optional": false,
|
|
669
|
+
"doc": "the penetration distance between the objects, which is always positive"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "a",
|
|
673
|
+
"types": ["table"],
|
|
674
|
+
"optional": false,
|
|
675
|
+
"doc": "contact point information for object A\n<dl>\n<dt><code>position</code></dt>\n<dd><span class=\"type\">vector3</span> The world position of object A</dd>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object A</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object A</dd>\n<dt><code>relative_velocity</code></dt>\n<dd><span class=\"type\">vector3</span> The relative velocity of the collision object A as observed from B object</dd>\n<dt><code>mass</code></dt>\n<dd><span class=\"type\">number</span> The mass of the collision object A in kg</dd>\n<dt><code>normal</code></dt>\n<dd><span class=\"type\">vector3</span> normal in world space of the contact point, which points from B object towards A object</dd>\n</dl>"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "b",
|
|
679
|
+
"types": ["table"],
|
|
680
|
+
"optional": false,
|
|
681
|
+
"doc": "contact point information for object B\n<dl>\n<dt><code>position</code></dt>\n<dd><span class=\"type\">vector3</span> The world position of object B</dd>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object B</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object B</dd>\n<dt><code>relative_velocity</code></dt>\n<dd><span class=\"type\">vector3</span> The relative velocity of the collision object B as observed from A object</dd>\n<dt><code>mass</code></dt>\n<dd><span class=\"type\">number</span> The mass of the collision object B in kg</dd>\n<dt><code>normal</code></dt>\n<dd><span class=\"type\">vector3</span> normal in world space of the contact point, which points from A object towards B object</dd>\n</dl>"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "collision_event",
|
|
687
|
+
"origin": "physics",
|
|
688
|
+
"description": "See <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a>.\nThis message is sent to a function specified in <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a>\nwhen two collision objects collide.\nThis message only reports that a collision has occurred and will be sent once per frame and per colliding pair.\nFor more detailed information, check for the <a href=\"#contact_point_event\">contact_point_event</a>.",
|
|
689
|
+
"payload": [
|
|
690
|
+
{
|
|
691
|
+
"name": "a",
|
|
692
|
+
"types": ["table"],
|
|
693
|
+
"optional": false,
|
|
694
|
+
"doc": "collision information for object A\n<dl>\n<dt><code>position</code></dt>\n<dd><span class=\"type\">vector3</span> The world position of object A</dd>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object A</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object A</dd>\n</dl>"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "b",
|
|
698
|
+
"types": ["table"],
|
|
699
|
+
"optional": false,
|
|
700
|
+
"doc": "collision information for object B\n<dl>\n<dt><code>position</code></dt>\n<dd><span class=\"type\">vector3</span> The world position of object B</dd>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object B</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object B</dd>\n</dl>"
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "trigger_event",
|
|
706
|
+
"origin": "physics",
|
|
707
|
+
"description": "See <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a>.\nThis message is sent to a function specified in <a href=\"/ref/physics#physics.set_event_listener\">physics.set_event_listener</a>\nwhen a collision object interacts with another collision object and one of them is a trigger.\nThis message only reports that an interaction actually happened and will be sent once per colliding pair and frame.\nFor more detailed information, check for the <a href=\"#contact_point_event\">contact_point_event</a>.",
|
|
708
|
+
"payload": [
|
|
709
|
+
{
|
|
710
|
+
"name": "enter",
|
|
711
|
+
"types": ["boolean"],
|
|
712
|
+
"optional": false,
|
|
713
|
+
"doc": "if the interaction was an entry or not"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "a",
|
|
717
|
+
"types": ["table"],
|
|
718
|
+
"optional": false,
|
|
719
|
+
"doc": "<dl>\n<dt>interaction information for object A</dt>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object A</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object A</dd>\n</dl>"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "b",
|
|
723
|
+
"types": ["table"],
|
|
724
|
+
"optional": false,
|
|
725
|
+
"doc": "collision information for object B\n<dl>\n<dt><code>id</code></dt>\n<dd><span class=\"type\">hash</span> The ID of object B</dd>\n<dt><code>group</code></dt>\n<dd><span class=\"type\">hash</span> The collision group of object B</dd>\n</dl>"
|
|
726
|
+
}
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "resize",
|
|
731
|
+
"origin": "render",
|
|
732
|
+
"description": "Set the size of the game window. Only works on desktop platforms.",
|
|
733
|
+
"payload": [
|
|
734
|
+
{
|
|
735
|
+
"name": "height",
|
|
736
|
+
"types": ["number"],
|
|
737
|
+
"optional": false,
|
|
738
|
+
"doc": "the new window height"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "width",
|
|
742
|
+
"types": ["number"],
|
|
743
|
+
"optional": false,
|
|
744
|
+
"doc": "the new window width"
|
|
745
|
+
}
|
|
746
|
+
]
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"name": "exit",
|
|
750
|
+
"origin": "sys",
|
|
751
|
+
"description": "Terminates the game application and reports the specified <code>code</code> to the OS.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
752
|
+
"payload": [
|
|
753
|
+
{
|
|
754
|
+
"name": "code",
|
|
755
|
+
"types": ["number"],
|
|
756
|
+
"optional": false,
|
|
757
|
+
"doc": "exit code to report to the OS, 0 means clean exit"
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "toggle_profile",
|
|
763
|
+
"origin": "sys",
|
|
764
|
+
"description": "Toggles the on-screen profiler.\nThe profiler is a real-time tool that shows the numbers of milliseconds spent\nin each scope per frame as well as counters. The profiler is very useful for\ntracking down performance and resource problems.\nIn addition to the on-screen profiler, Defold includes a web-based profiler that\nallows you to sample a series of data points and then analyze them in detail.\nThe web profiler is available at <code>http://<device IP>:8002</code> where <device IP> is\nthe IP address of the device you are running your game on.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
765
|
+
"payload": []
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"name": "toggle_physics_debug",
|
|
769
|
+
"origin": "sys",
|
|
770
|
+
"description": "Toggles the on-screen physics visual debugging mode which is very useful for\ntracking down issues related to physics. This mode visualizes\nall collision object shapes and normals at detected contact points. Toggling\nthis mode on is equal to setting <code>physics.debug</code> in the \"game.project\" settings,\nbut set in run-time.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
771
|
+
"payload": []
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "start_record",
|
|
775
|
+
"origin": "sys",
|
|
776
|
+
"description": "Starts video recording of the game frame-buffer to file. Current video format is the\nopen vp8 codec in the ivf container. It's possible to upload this format directly\nto YouTube. The VLC video player has native support but with the known issue that\nnot the entire file is played back. It's probably an issue with VLC.\nThe Miro Video Converter has support for vp8/ivf.\n<span class=\"icon-macos\"></span> <span class=\"icon-windows\"></span> <span class=\"icon-linux\"></span> Video recording is only supported on desktop platforms.\n<span class=\"icon-attention\"></span> Audio is currently not supported\n<span class=\"icon-attention\"></span> Window width and height must be a multiple of 8 to be able to record video.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
777
|
+
"payload": [
|
|
778
|
+
{
|
|
779
|
+
"name": "file_name",
|
|
780
|
+
"types": ["string"],
|
|
781
|
+
"optional": false,
|
|
782
|
+
"doc": "file name to write the video to"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "frame_period",
|
|
786
|
+
"types": ["number"],
|
|
787
|
+
"optional": false,
|
|
788
|
+
"doc": "frame period to record, ie write every nth frame. Default value is <code>2</code>"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"name": "fps",
|
|
792
|
+
"types": ["number"],
|
|
793
|
+
"optional": false,
|
|
794
|
+
"doc": "frames per second. Playback speed for the video. Default value is <code>30</code>. The fps value doens't affect the recording. It's only meta-data in the written video file."
|
|
795
|
+
}
|
|
796
|
+
]
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "stop_record",
|
|
800
|
+
"origin": "sys",
|
|
801
|
+
"description": "Stops the currently active video recording.\n<span class=\"icon-macos\"></span> <span class=\"icon-windows\"></span> <span class=\"icon-linux\"></span> Video recording is only supported on desktop platforms.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
802
|
+
"payload": []
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "reboot",
|
|
806
|
+
"origin": "sys",
|
|
807
|
+
"description": "Reboots the game engine with a specified set of arguments.\nArguments will be translated into command line arguments. Sending the reboot\ncommand is equivalent to starting the engine with the same arguments.\nOn startup the engine reads configuration from \"game.project\" in the\nproject root.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
808
|
+
"payload": [
|
|
809
|
+
{
|
|
810
|
+
"name": "arg1",
|
|
811
|
+
"types": ["string"],
|
|
812
|
+
"optional": false,
|
|
813
|
+
"doc": "argument 1"
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "arg2",
|
|
817
|
+
"types": ["string"],
|
|
818
|
+
"optional": false,
|
|
819
|
+
"doc": "argument 2"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "arg3",
|
|
823
|
+
"types": ["string"],
|
|
824
|
+
"optional": false,
|
|
825
|
+
"doc": "argument 3"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "arg4",
|
|
829
|
+
"types": ["string"],
|
|
830
|
+
"optional": false,
|
|
831
|
+
"doc": "argument 4"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "arg5",
|
|
835
|
+
"types": ["string"],
|
|
836
|
+
"optional": false,
|
|
837
|
+
"doc": "argument 5"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "arg6",
|
|
841
|
+
"types": ["string"],
|
|
842
|
+
"optional": false,
|
|
843
|
+
"doc": "argument 6"
|
|
844
|
+
}
|
|
845
|
+
]
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "set_vsync",
|
|
849
|
+
"origin": "sys",
|
|
850
|
+
"description": "Set the vsync swap interval. The interval with which to swap the front and back buffers\nin sync with vertical blanks (v-blank), the hardware event where the screen image is updated\nwith data from the front buffer. A value of 1 swaps the buffers at every v-blank, a value of\n2 swaps the buffers every other v-blank and so on. A value of 0 disables waiting for v-blank\nbefore swapping the buffers. Default value is 1.\nWhen setting the swap interval to 0 and having <code>vsync</code> disabled in\n\"game.project\", the engine will try to respect the set frame cap value from\n\"game.project\" in software instead.\nThis setting may be overridden by driver settings.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
851
|
+
"payload": [
|
|
852
|
+
{
|
|
853
|
+
"name": "swap_interval",
|
|
854
|
+
"types": ["number"],
|
|
855
|
+
"optional": false,
|
|
856
|
+
"doc": "target swap interval."
|
|
857
|
+
}
|
|
858
|
+
]
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "set_update_frequency",
|
|
862
|
+
"origin": "sys",
|
|
863
|
+
"description": "Set game update-frequency (frame cap). This option is equivalent to <code>display.update_frequency</code> in\nthe \"game.project\" settings but set in run-time. If <code>Vsync</code> checked in \"game.project\", the rate will\nbe clamped to a swap interval that matches any detected main monitor refresh rate. If <code>Vsync</code> is\nunchecked the engine will try to respect the rate in software using timers. There is no\nguarantee that the frame cap will be achieved depending on platform specifics and hardware settings.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
864
|
+
"payload": [
|
|
865
|
+
{
|
|
866
|
+
"name": "frequency",
|
|
867
|
+
"types": ["number"],
|
|
868
|
+
"optional": false,
|
|
869
|
+
"doc": "target frequency. 60 for 60 fps"
|
|
870
|
+
}
|
|
871
|
+
]
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "resume_rendering",
|
|
875
|
+
"origin": "sys",
|
|
876
|
+
"description": "Resume rendering.\nThis message can only be sent to the designated <code>@system</code> socket.",
|
|
877
|
+
"payload": []
|
|
878
|
+
}
|
|
879
|
+
]
|
|
880
|
+
}
|