@defold-typescript/library-types 0.23.0 → 0.25.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/NOTICE +2 -3
- package/api-doc/boom.json +3872 -0
- package/api-doc/bridge.json +10 -5
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/checkpoint.json +127 -0
- package/api-doc/decore.json +1 -1
- package/api-doc/defcon.json +150 -0
- package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
- package/api-doc/defsave.json +518 -0
- package/api-doc/deftest.json +745 -0
- package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
- package/api-doc/druid.json +90 -92
- package/api-doc/event.json +16 -16
- package/api-doc/gooey.json +2050 -0
- package/api-doc/in.accelerometer.json +75 -1
- package/api-doc/in.button.json +17 -10
- package/api-doc/in.cursor.json +26 -0
- package/api-doc/in.gesture.json +401 -6
- package/api-doc/in.keyboard.json +2 -0
- package/api-doc/in.mapper.json +12 -8
- package/api-doc/in.onscreen.json +61 -5
- package/api-doc/in.state.json +61 -13
- package/api-doc/in.textbox.json +23 -12
- package/api-doc/in.triggers.json +336 -0
- package/api-doc/lang.json +5 -5
- package/api-doc/log.json +1 -1
- package/api-doc/metrics.fps.json +61 -2
- package/api-doc/metrics.mem.json +61 -2
- package/api-doc/monarch.monarch.json +249 -7
- package/api-doc/monarch.transitions.easings.json +19 -26
- package/api-doc/monarch.transitions.gui.json +782 -79
- package/api-doc/nakama.engine.defold.json +31 -18
- package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
- package/api-doc/nakama.session.json +315 -0
- package/api-doc/nakama.socket.json +3356 -0
- package/api-doc/nakama.util.log.json +32 -4
- package/api-doc/narrator.json +1 -1
- package/api-doc/openapi/nakama.nakama.json +7680 -0
- package/api-doc/orthographic.camera.json +96 -98
- package/api-doc/orthographic.json +602 -0
- package/api-doc/panthera.json +1183 -0
- package/api-doc/{persist.persist.json → persist.json} +26 -1
- package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
- package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
- package/api-doc/richtext.color.json +77 -0
- package/api-doc/richtext.richtext.json +375 -5
- package/api-doc/saver.saver.json +2 -1
- package/api-doc/saver.storage.json +2 -1
- package/api-doc/shutter.json +551 -0
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +433 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +5 -5
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/checkpoint.d.ts +62 -0
- package/generated/decore.d.ts +1 -1
- package/generated/defcon.d.ts +43 -0
- package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
- package/generated/defsave.d.ts +144 -0
- package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
- package/generated/druid.d.ts +81 -79
- package/generated/event.d.ts +15 -15
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +5 -5
- package/generated/log.d.ts +1 -1
- package/generated/metrics.fps.d.ts +19 -1
- package/generated/metrics.mem.d.ts +19 -1
- package/generated/monarch.monarch.d.ts +44 -1
- package/generated/monarch.transitions.easings.d.ts +0 -1
- package/generated/monarch.transitions.gui.d.ts +96 -12
- package/generated/nakama.d.ts +1158 -0
- package/generated/nakama.engine.defold.d.ts +3 -1
- package/generated/nakama.session.d.ts +95 -0
- package/generated/nakama.socket.d.ts +706 -0
- package/generated/nakama.util.log.d.ts +6 -0
- package/generated/narrator.d.ts +1 -1
- package/generated/openapi/nakama.nakama.d.ts +884 -0
- package/generated/orthographic.camera.d.ts +24 -38
- package/generated/orthographic.d.ts +155 -0
- package/generated/panthera.d.ts +170 -0
- package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
- package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
- package/generated/proto.d.ts +4 -4
- package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
- package/generated/richtext.color.d.ts +15 -0
- package/generated/saver.saver.d.ts +2 -0
- package/generated/saver.storage.d.ts +2 -0
- package/generated/shutter.d.ts +183 -0
- package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
- package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
- package/library-classification.json +0 -156
- package/library-targets.json +1 -218
- package/luals-targets.json +56 -3
- package/openapi-targets.json +17 -0
- package/package.json +7 -57
- package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
- package/scripts/apply-luals-overrides.ts +39 -7
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +94 -17
- package/scripts/extract-api-doc.ts +214 -42
- package/scripts/fidelity-floor.ts +178 -0
- package/scripts/import-upstream-docs.ts +125 -0
- package/scripts/lower-api-doc.ts +21 -3
- package/scripts/luals-fidelity.ts +16 -11
- package/scripts/map-luals-types.ts +52 -21
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +50 -4
- package/scripts/parse-markdown-api.ts +247 -0
- package/scripts/parse-openapi-api.ts +313 -0
- package/scripts/sync-authored-types.ts +249 -0
- package/scripts/sync-library-types.ts +99 -3
- package/scripts/sync-luals-types.ts +14 -1
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +16 -17
- package/api-doc/boom.boom.json +0 -26
- package/api-doc/bzAnim.bzLibrary.json +0 -156
- package/api-doc/defcon.console.json +0 -109
- package/api-doc/defsave.defsave.json +0 -175
- package/api-doc/deftest.deftest.json +0 -71
- package/api-doc/gooey.gooey.json +0 -963
- package/api-doc/starly.starly.json +0 -488
- package/generated/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- package/generated/nakama.nakama.d.ts +0 -594
- package/generated/starly.starly.d.ts +0 -148
- /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"namespace": "shutter",
|
|
4
|
+
"brief": "",
|
|
5
|
+
"description": ""
|
|
6
|
+
},
|
|
7
|
+
"elements": [
|
|
8
|
+
{
|
|
9
|
+
"type": "VARIABLE",
|
|
10
|
+
"name": "camera_table",
|
|
11
|
+
"brief": "Every live camera, keyed by the id of the game object it lives on. The",
|
|
12
|
+
"description": "Every live camera, keyed by the id of the game object it lives on. The\nshutter.script file writes to it; read from it rather than manipulating it\ndirectly.",
|
|
13
|
+
"types": [
|
|
14
|
+
"LuaMap<Hash, ShutterCamera>"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "VARIABLE",
|
|
19
|
+
"name": "center_behavior",
|
|
20
|
+
"brief": "Keeps the projection fixed and shrinks the viewport to preserve the display",
|
|
21
|
+
"description": "Keeps the projection fixed and shrinks the viewport to preserve the display\nratio, letterboxing or pillarboxing the remainder.",
|
|
22
|
+
"types": [
|
|
23
|
+
"Hash"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "VARIABLE",
|
|
28
|
+
"name": "expand_behavior",
|
|
29
|
+
"brief": "Keeps the viewport filling the window and widens the projection as the window",
|
|
30
|
+
"description": "Keeps the viewport filling the window and widens the projection as the window\ngrows, showing more of the game world rather than scaling it.",
|
|
31
|
+
"types": [
|
|
32
|
+
"Hash"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "VARIABLE",
|
|
37
|
+
"name": "stretch_behavior",
|
|
38
|
+
"brief": "Keeps both the viewport and the projection filling the window, so the game world",
|
|
39
|
+
"description": "Keeps both the viewport and the projection filling the window, so the game world\ndistorts with the window ratio.",
|
|
40
|
+
"types": [
|
|
41
|
+
"Hash"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "FUNCTION",
|
|
46
|
+
"name": "activate",
|
|
47
|
+
"brief": "Installs a camera's viewport, view matrix and projection matrix into the render",
|
|
48
|
+
"description": "Installs a camera's viewport, view matrix and projection matrix into the render\ncontext. Call it from a render script before drawing the world.",
|
|
49
|
+
"parameters": [
|
|
50
|
+
{
|
|
51
|
+
"name": "object",
|
|
52
|
+
"doc": "The game object the camera lives on.",
|
|
53
|
+
"types": [
|
|
54
|
+
"Hash"
|
|
55
|
+
],
|
|
56
|
+
"is_optional": "False"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"returnvalues": [
|
|
60
|
+
{
|
|
61
|
+
"name": "",
|
|
62
|
+
"doc": "The camera's frustum, for passing to `render.draw`.",
|
|
63
|
+
"types": [
|
|
64
|
+
"Matrix4"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "FUNCTION",
|
|
71
|
+
"name": "deactivate",
|
|
72
|
+
"brief": "Restores the viewport and matrices Defold's GUI system expects, sized to the",
|
|
73
|
+
"description": "Restores the viewport and matrices Defold's GUI system expects, sized to the\ncurrent window. Call it before drawing GUI.",
|
|
74
|
+
"parameters": [],
|
|
75
|
+
"returnvalues": [
|
|
76
|
+
{
|
|
77
|
+
"name": "",
|
|
78
|
+
"doc": "The frustum matching the restored matrices.",
|
|
79
|
+
"types": [
|
|
80
|
+
"Matrix4"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "FUNCTION",
|
|
87
|
+
"name": "force_update",
|
|
88
|
+
"brief": "Recalculates a camera's viewport, view matrix and projection matrix immediately.",
|
|
89
|
+
"description": "Recalculates a camera's viewport, view matrix and projection matrix immediately.\nThe shutter.script game object already does this once per frame; call it directly\nonly after changing a camera property mid-frame.",
|
|
90
|
+
"parameters": [
|
|
91
|
+
{
|
|
92
|
+
"name": "object",
|
|
93
|
+
"doc": "The game object the camera lives on.",
|
|
94
|
+
"types": [
|
|
95
|
+
"Hash"
|
|
96
|
+
],
|
|
97
|
+
"is_optional": "False"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"returnvalues": []
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "FUNCTION",
|
|
104
|
+
"name": "get_viewport",
|
|
105
|
+
"brief": "Calculates the camera's viewport in window coordinates, scaled from the",
|
|
106
|
+
"description": "Calculates the camera's viewport in window coordinates, scaled from the\ngame.project display size and, under center behavior, shrunk and centered to\npreserve the display ratio.",
|
|
107
|
+
"parameters": [
|
|
108
|
+
{
|
|
109
|
+
"name": "object",
|
|
110
|
+
"doc": "The game object the camera lives on.",
|
|
111
|
+
"types": [
|
|
112
|
+
"Hash"
|
|
113
|
+
],
|
|
114
|
+
"is_optional": "False"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"returnvalues": [
|
|
118
|
+
{
|
|
119
|
+
"name": "",
|
|
120
|
+
"doc": "The viewport's x, y, width and height.",
|
|
121
|
+
"types": [
|
|
122
|
+
"LuaMultiReturn<[ number, number, number, number ]>"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "FUNCTION",
|
|
129
|
+
"name": "get_view",
|
|
130
|
+
"brief": "Calculates the camera's view matrix from the inverse of its game object's world",
|
|
131
|
+
"description": "Calculates the camera's view matrix from the inverse of its game object's world\ntransform.",
|
|
132
|
+
"parameters": [
|
|
133
|
+
{
|
|
134
|
+
"name": "object",
|
|
135
|
+
"doc": "The game object the camera lives on.",
|
|
136
|
+
"types": [
|
|
137
|
+
"Hash"
|
|
138
|
+
],
|
|
139
|
+
"is_optional": "False"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"returnvalues": [
|
|
143
|
+
{
|
|
144
|
+
"name": "",
|
|
145
|
+
"doc": "",
|
|
146
|
+
"types": [
|
|
147
|
+
"Matrix4"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "FUNCTION",
|
|
154
|
+
"name": "get_projection",
|
|
155
|
+
"brief": "Calculates the camera's orthographic projection matrix, sized from the display",
|
|
156
|
+
"description": "Calculates the camera's orthographic projection matrix, sized from the display\nunder center and stretch behavior and from the window under expand behavior.",
|
|
157
|
+
"parameters": [
|
|
158
|
+
{
|
|
159
|
+
"name": "object",
|
|
160
|
+
"doc": "The game object the camera lives on.",
|
|
161
|
+
"types": [
|
|
162
|
+
"Hash"
|
|
163
|
+
],
|
|
164
|
+
"is_optional": "False"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"returnvalues": [
|
|
168
|
+
{
|
|
169
|
+
"name": "",
|
|
170
|
+
"doc": "",
|
|
171
|
+
"types": [
|
|
172
|
+
"Matrix4"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "FUNCTION",
|
|
179
|
+
"name": "get_frustum",
|
|
180
|
+
"brief": "Returns the camera's frustum, the product of its last calculated projection and",
|
|
181
|
+
"description": "Returns the camera's frustum, the product of its last calculated projection and\nview matrices.",
|
|
182
|
+
"parameters": [
|
|
183
|
+
{
|
|
184
|
+
"name": "object",
|
|
185
|
+
"doc": "The game object the camera lives on.",
|
|
186
|
+
"types": [
|
|
187
|
+
"Hash"
|
|
188
|
+
],
|
|
189
|
+
"is_optional": "False"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"returnvalues": [
|
|
193
|
+
{
|
|
194
|
+
"name": "",
|
|
195
|
+
"doc": "",
|
|
196
|
+
"types": [
|
|
197
|
+
"Matrix4"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "FUNCTION",
|
|
204
|
+
"name": "get_distance",
|
|
205
|
+
"brief": "Converts a screen distance into the world distance an object must travel to cover",
|
|
206
|
+
"description": "Converts a screen distance into the world distance an object must travel to cover\nit, accounting for the camera's zoom and, under center and stretch behavior, for\nthe viewport no longer mapping to physical screen coordinates.",
|
|
207
|
+
"parameters": [
|
|
208
|
+
{
|
|
209
|
+
"name": "object",
|
|
210
|
+
"doc": "The game object the camera lives on.",
|
|
211
|
+
"types": [
|
|
212
|
+
"Hash"
|
|
213
|
+
],
|
|
214
|
+
"is_optional": "False"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "distance",
|
|
218
|
+
"doc": "The screen distance to convert.",
|
|
219
|
+
"types": [
|
|
220
|
+
"Vector3"
|
|
221
|
+
],
|
|
222
|
+
"is_optional": "False"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "absolute",
|
|
226
|
+
"doc": "Skip rotating the result by the camera's rotation.",
|
|
227
|
+
"types": [
|
|
228
|
+
"boolean"
|
|
229
|
+
],
|
|
230
|
+
"is_optional": "True"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"returnvalues": [
|
|
234
|
+
{
|
|
235
|
+
"name": "",
|
|
236
|
+
"doc": "",
|
|
237
|
+
"types": [
|
|
238
|
+
"Vector3"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "FUNCTION",
|
|
245
|
+
"name": "shake",
|
|
246
|
+
"brief": "Starts a camera shake animation, cancelling and restarting any shake already",
|
|
247
|
+
"description": "Starts a camera shake animation, cancelling and restarting any shake already\nrunning on this camera.",
|
|
248
|
+
"parameters": [
|
|
249
|
+
{
|
|
250
|
+
"name": "object",
|
|
251
|
+
"doc": "The game object the camera lives on.",
|
|
252
|
+
"types": [
|
|
253
|
+
"Hash"
|
|
254
|
+
],
|
|
255
|
+
"is_optional": "False"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "parent",
|
|
259
|
+
"doc": "Shake the camera object's parent instead of the camera itself.",
|
|
260
|
+
"types": [
|
|
261
|
+
"boolean"
|
|
262
|
+
],
|
|
263
|
+
"is_optional": "False"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "count",
|
|
267
|
+
"doc": "How many times to displace the camera before stopping.",
|
|
268
|
+
"types": [
|
|
269
|
+
"number"
|
|
270
|
+
],
|
|
271
|
+
"is_optional": "False"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "duration",
|
|
275
|
+
"doc": "Seconds each displacement takes.",
|
|
276
|
+
"types": [
|
|
277
|
+
"number"
|
|
278
|
+
],
|
|
279
|
+
"is_optional": "False"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "radius",
|
|
283
|
+
"doc": "How far each displacement moves the camera.",
|
|
284
|
+
"types": [
|
|
285
|
+
"number"
|
|
286
|
+
],
|
|
287
|
+
"is_optional": "False"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "duration_scalar",
|
|
291
|
+
"doc": "Multiplies the duration after each displacement. Defaults to 1.",
|
|
292
|
+
"types": [
|
|
293
|
+
"number"
|
|
294
|
+
],
|
|
295
|
+
"is_optional": "True"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "radius_scalar",
|
|
299
|
+
"doc": "Multiplies the radius after each displacement. Defaults to 1.",
|
|
300
|
+
"types": [
|
|
301
|
+
"number"
|
|
302
|
+
],
|
|
303
|
+
"is_optional": "True"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"returnvalues": []
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "FUNCTION",
|
|
310
|
+
"name": "cancel_shake",
|
|
311
|
+
"brief": "Stops a running camera shake and returns the shaken object to where it started.",
|
|
312
|
+
"description": "Stops a running camera shake and returns the shaken object to where it started.\nDoes nothing if no shake is running.",
|
|
313
|
+
"parameters": [
|
|
314
|
+
{
|
|
315
|
+
"name": "object",
|
|
316
|
+
"doc": "The game object the camera lives on.",
|
|
317
|
+
"types": [
|
|
318
|
+
"Hash"
|
|
319
|
+
],
|
|
320
|
+
"is_optional": "False"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "parent",
|
|
324
|
+
"doc": "Whether the shake was started against the camera object's parent.",
|
|
325
|
+
"types": [
|
|
326
|
+
"boolean"
|
|
327
|
+
],
|
|
328
|
+
"is_optional": "True"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"returnvalues": []
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"type": "FUNCTION",
|
|
335
|
+
"name": "screen_to_world",
|
|
336
|
+
"brief": "Converts a screen position to its world position through the inverse of the",
|
|
337
|
+
"description": "Converts a screen position to its world position through the inverse of the\ncamera's frustum.",
|
|
338
|
+
"parameters": [
|
|
339
|
+
{
|
|
340
|
+
"name": "object",
|
|
341
|
+
"doc": "The game object the camera lives on.",
|
|
342
|
+
"types": [
|
|
343
|
+
"Hash"
|
|
344
|
+
],
|
|
345
|
+
"is_optional": "False"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "x",
|
|
349
|
+
"doc": "The screen position's x coordinate.",
|
|
350
|
+
"types": [
|
|
351
|
+
"number"
|
|
352
|
+
],
|
|
353
|
+
"is_optional": "False"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "y",
|
|
357
|
+
"doc": "The screen position's y coordinate.",
|
|
358
|
+
"types": [
|
|
359
|
+
"number"
|
|
360
|
+
],
|
|
361
|
+
"is_optional": "False"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"name": "visible",
|
|
365
|
+
"doc": "Return `nil` instead when the position falls outside the camera's view.",
|
|
366
|
+
"types": [
|
|
367
|
+
"boolean"
|
|
368
|
+
],
|
|
369
|
+
"is_optional": "True"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"returnvalues": [
|
|
373
|
+
{
|
|
374
|
+
"name": "",
|
|
375
|
+
"doc": "The world position, or `nil` if `visible` filtered it out.",
|
|
376
|
+
"types": [
|
|
377
|
+
"Vector3 | undefined"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "FUNCTION",
|
|
384
|
+
"name": "world_to_screen",
|
|
385
|
+
"brief": "Converts a world position to its screen position through the camera's frustum.",
|
|
386
|
+
"description": "Converts a world position to its screen position through the camera's frustum.",
|
|
387
|
+
"parameters": [
|
|
388
|
+
{
|
|
389
|
+
"name": "object",
|
|
390
|
+
"doc": "The game object the camera lives on.",
|
|
391
|
+
"types": [
|
|
392
|
+
"Hash"
|
|
393
|
+
],
|
|
394
|
+
"is_optional": "False"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "position",
|
|
398
|
+
"doc": "The world position to convert.",
|
|
399
|
+
"types": [
|
|
400
|
+
"Vector3"
|
|
401
|
+
],
|
|
402
|
+
"is_optional": "False"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "visible",
|
|
406
|
+
"doc": "Return `nil` instead when the position falls outside the camera's view.",
|
|
407
|
+
"types": [
|
|
408
|
+
"boolean"
|
|
409
|
+
],
|
|
410
|
+
"is_optional": "True"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"returnvalues": [
|
|
414
|
+
{
|
|
415
|
+
"name": "",
|
|
416
|
+
"doc": "The screen position, or `nil` if `visible` filtered it out.",
|
|
417
|
+
"types": [
|
|
418
|
+
"Vector3 | undefined"
|
|
419
|
+
]
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "TYPEDEF",
|
|
425
|
+
"name": "ShutterCamera",
|
|
426
|
+
"properties": [
|
|
427
|
+
{
|
|
428
|
+
"name": "behavior",
|
|
429
|
+
"brief": "One of `center_behavior`, `expand_behavior` or `stretch_behavior`.",
|
|
430
|
+
"description": "One of `center_behavior`, `expand_behavior` or `stretch_behavior`.",
|
|
431
|
+
"types": [
|
|
432
|
+
"Hash"
|
|
433
|
+
]
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "viewport_x",
|
|
437
|
+
"brief": "",
|
|
438
|
+
"description": "",
|
|
439
|
+
"types": [
|
|
440
|
+
"number"
|
|
441
|
+
]
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "viewport_y",
|
|
445
|
+
"brief": "",
|
|
446
|
+
"description": "",
|
|
447
|
+
"types": [
|
|
448
|
+
"number"
|
|
449
|
+
]
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "viewport_width",
|
|
453
|
+
"brief": "",
|
|
454
|
+
"description": "",
|
|
455
|
+
"types": [
|
|
456
|
+
"number"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "viewport_height",
|
|
461
|
+
"brief": "",
|
|
462
|
+
"description": "",
|
|
463
|
+
"types": [
|
|
464
|
+
"number"
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "near",
|
|
469
|
+
"brief": "",
|
|
470
|
+
"description": "",
|
|
471
|
+
"types": [
|
|
472
|
+
"number"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "far",
|
|
477
|
+
"brief": "",
|
|
478
|
+
"description": "",
|
|
479
|
+
"types": [
|
|
480
|
+
"number"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "zoom",
|
|
485
|
+
"brief": "",
|
|
486
|
+
"description": "",
|
|
487
|
+
"types": [
|
|
488
|
+
"number"
|
|
489
|
+
]
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "viewport_x_adjusted",
|
|
493
|
+
"brief": "Viewport left edge after the window scale and any letterboxing margin.",
|
|
494
|
+
"description": "Viewport left edge after the window scale and any letterboxing margin.",
|
|
495
|
+
"types": [
|
|
496
|
+
"number"
|
|
497
|
+
]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "viewport_y_adjusted",
|
|
501
|
+
"brief": "Viewport bottom edge after the window scale and any pillarboxing margin.",
|
|
502
|
+
"description": "Viewport bottom edge after the window scale and any pillarboxing margin.",
|
|
503
|
+
"types": [
|
|
504
|
+
"number"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "viewport_width_adjusted",
|
|
509
|
+
"brief": "",
|
|
510
|
+
"description": "",
|
|
511
|
+
"types": [
|
|
512
|
+
"number"
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "viewport_height_adjusted",
|
|
517
|
+
"brief": "",
|
|
518
|
+
"description": "",
|
|
519
|
+
"types": [
|
|
520
|
+
"number"
|
|
521
|
+
]
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "view",
|
|
525
|
+
"brief": "",
|
|
526
|
+
"description": "",
|
|
527
|
+
"types": [
|
|
528
|
+
"Matrix4"
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "projection",
|
|
533
|
+
"brief": "",
|
|
534
|
+
"description": "",
|
|
535
|
+
"types": [
|
|
536
|
+
"Matrix4"
|
|
537
|
+
]
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"name": "shake_origin",
|
|
541
|
+
"brief": "Where the shaken object sat before the shake began, and `nil` while no shake",
|
|
542
|
+
"description": "Where the shaken object sat before the shake began, and `nil` while no shake\nis running. `cancel_shake` restores the object to it.",
|
|
543
|
+
"types": [
|
|
544
|
+
"Vector3"
|
|
545
|
+
],
|
|
546
|
+
"is_optional": "True"
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
}
|