@zylem/game-lib 0.7.0 → 0.8.2
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/README.md +15 -1
- package/dist/actions.d.ts +71 -8
- package/dist/actions.js +1 -1
- package/dist/api/game-lib.api.json +55350 -0
- package/dist/api/game-lib.api.md +4608 -0
- package/dist/api/game-lib.d.ts +8447 -0
- package/dist/api/game-lib.typedoc.json +352456 -0
- package/dist/audio.js +1 -1
- package/dist/{base-node-life-cycle-CnJ-7zX-.d.ts → base-node-life-cycle-BK9xebT9.d.ts} +18 -4
- package/dist/behavior.d.ts +2 -3
- package/dist/behavior.js +1 -1
- package/dist/blueprints-TbGY-h53.d.ts +162 -0
- package/dist/chunk-3PRBSSTS.js +24 -0
- package/dist/chunk-47DG7I7M.js +1 -0
- package/dist/chunk-7GYFZKK7.js +1 -0
- package/dist/chunk-7QF6YTEZ.js +1 -0
- package/dist/chunk-7WRQ2UAN.js +1 -0
- package/dist/chunk-BH53MBAZ.js +1 -0
- package/dist/chunk-BIGH6D34.js +0 -0
- package/dist/chunk-CD7ZOZ35.js +1 -0
- package/dist/chunk-CFVRRRZZ.js +1 -0
- package/dist/chunk-CM5YRNBJ.js +19 -0
- package/dist/chunk-COM6HJ2L.js +1 -0
- package/dist/chunk-D2PATZCC.js +1 -0
- package/dist/chunk-DFLI7ICU.js +0 -0
- package/dist/chunk-EVYHPR3J.js +1 -0
- package/dist/chunk-IPWUDOV5.js +1 -0
- package/dist/chunk-JNFFTNMH.js +1 -0
- package/dist/chunk-JQKS42G4.js +1 -0
- package/dist/chunk-KVSJE4XD.js +1 -0
- package/dist/chunk-MZZCDXFB.js +1 -0
- package/dist/chunk-ORIDWL3T.js +0 -0
- package/dist/{chunk-RXDTAWI2.js → chunk-PCFF4LLO.js} +1 -1
- package/dist/chunk-QB3NL7VQ.js +1 -0
- package/dist/chunk-TAUWDQZF.js +9 -0
- package/dist/chunk-UG22Z42P.js +1 -0
- package/dist/chunk-VS2D4B3W.js +1 -0
- package/dist/chunk-WQ3WMMZD.js +1 -0
- package/dist/chunk-XK63E4SX.js +1 -0
- package/dist/chunk-YAOXFYOD.js +1 -0
- package/dist/chunk-ZRT3ZQVH.js +1 -0
- package/dist/collision-builder-B_tm8OVy.d.ts +49 -0
- package/dist/core.d.ts +45 -30
- package/dist/core.js +1 -24
- package/dist/debug-state-DRoeasG2.d.ts +17 -0
- package/dist/debug.d.ts +71 -19
- package/dist/debug.js +1 -1
- package/dist/{default-controls-BGc61yYl.d.ts → default-controls-CAKJ5zlo.d.ts} +3 -3
- package/dist/entity-B9yZeBm4.d.ts +34 -0
- package/dist/{entity-DNkYKfdp.d.ts → entity-BGEq1yfC.d.ts} +91 -444
- package/dist/{entity-type-map-C94h2TDW.d.ts → entity-type-map-CW6RHQkx.d.ts} +153 -6
- package/dist/entity.d.ts +15 -10
- package/dist/entity.js +1 -1
- package/dist/events.d.ts +10 -1
- package/dist/events.js +1 -1
- package/dist/{game-Cuj5gy7U.d.ts → game-DbqBQiFC.d.ts} +460 -135
- package/dist/game-default-6AZZCNST.js +1 -0
- package/dist/{game-interfaces-tfpM5NBk.d.ts → game-interfaces-vF5sRi1n.d.ts} +8 -2
- package/dist/globals.d.ts +12 -1
- package/dist/globals.js +1 -1
- package/dist/graphics.d.ts +16 -46
- package/dist/graphics.js +1 -1
- package/dist/input-ui.d.ts +5 -4
- package/dist/input-ui.js +1 -1
- package/dist/input.d.ts +48 -4
- package/dist/input.js +1 -1
- package/dist/{material-Wz83vTTp.d.ts → material-DbSuZBbP.d.ts} +25 -50
- package/dist/public.d.ts +38 -0
- package/dist/public.js +1 -0
- package/dist/runtime.d.ts +7 -381
- package/dist/runtime.js +1 -1
- package/dist/schema/entity.schema.json +244 -0
- package/dist/schema/game-config.schema.json +643 -0
- package/dist/schema/input-config.schema.json +517 -0
- package/dist/schema/stage-config.schema.json +93 -0
- package/dist/schema/stage.schema.json +271 -0
- package/dist/schema.d.ts +550 -0
- package/dist/schema.js +1 -0
- package/dist/stage-transition-CmGpV4tc.d.ts +46 -0
- package/dist/vector-DN6zlPoE.d.ts +161 -0
- package/dist/web-components.d.ts +15 -12
- package/dist/web-components.js +1 -9
- package/dist/{zylem-stage-runtime-Cs-UDEVU.d.ts → zylem-camera-Du2UPW9O.d.ts} +74 -264
- package/package.json +28 -20
- package/dist/chunk-73VZQZUL.js +0 -1
- package/dist/chunk-A34ZG3L4.js +0 -1
- package/dist/chunk-CDPY4VOQ.js +0 -1
- package/dist/chunk-DR6XXZE7.js +0 -19
- package/dist/chunk-FM5TBEPO.js +0 -1
- package/dist/chunk-G2IIMSUH.js +0 -1
- package/dist/chunk-MSC2BEO5.js +0 -1
- package/dist/chunk-NIH5CONO.js +0 -1
- package/dist/chunk-ONWXGBWB.js +0 -1
- package/dist/chunk-QEDQDR27.js +0 -1
- package/dist/chunk-WKHW2QO2.js +0 -1
- package/dist/chunk-YHKXQ2ZN.js +0 -1
- package/dist/game-default-PZLLHYL7.js +0 -1
- package/dist/world-C9zdyl5d.d.ts +0 -103
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "GameInputConfig",
|
|
4
|
+
"title": "GameInputConfig",
|
|
5
|
+
"description": "Keys are player slots: p1, p2, p3, p4, p5, p6, p7, p8.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"patternProperties": {
|
|
8
|
+
"^(.*)$": {
|
|
9
|
+
"title": "GameInputPlayerConfig",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"key": {
|
|
14
|
+
"title": "KeyboardMapping",
|
|
15
|
+
"type": "object",
|
|
16
|
+
"patternProperties": {
|
|
17
|
+
"^(.*)$": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"mouse": {
|
|
26
|
+
"title": "MouseConfig",
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"mapping": {
|
|
31
|
+
"title": "MouseMapping",
|
|
32
|
+
"type": "object",
|
|
33
|
+
"patternProperties": {
|
|
34
|
+
"^(.*)$": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"pointerLock": {
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
"sensitivity": {
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
"lookMode": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"const": "delta",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"const": "screenCenter",
|
|
56
|
+
"type": "string"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"maxLookDegrees": {
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
"lookSensitivity": {
|
|
64
|
+
"type": "number"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"touch": {
|
|
69
|
+
"title": "VirtualTouchConfig",
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"enabled": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"const": "auto",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"className": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"style": {
|
|
88
|
+
"title": "VirtualTouchStyle",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"patternProperties": {
|
|
91
|
+
"^(.*)$": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "number"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"joysticks": {
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"title": "VirtualTouchJoysticksConfig",
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"left": {
|
|
111
|
+
"anyOf": [
|
|
112
|
+
{
|
|
113
|
+
"title": "VirtualTouchJoystickConfig",
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"enabled": {
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"className": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"style": {
|
|
124
|
+
"title": "VirtualTouchStyle",
|
|
125
|
+
"type": "object",
|
|
126
|
+
"patternProperties": {
|
|
127
|
+
"^(.*)$": {
|
|
128
|
+
"anyOf": [
|
|
129
|
+
{
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"type": "number"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"position": {
|
|
140
|
+
"title": "VirtualTouchPosition",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"top": {
|
|
145
|
+
"anyOf": [
|
|
146
|
+
{
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "number"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"right": {
|
|
155
|
+
"anyOf": [
|
|
156
|
+
{
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "number"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"bottom": {
|
|
165
|
+
"anyOf": [
|
|
166
|
+
{
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "number"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"left": {
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "number"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"transform": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"size": {
|
|
190
|
+
"type": "number"
|
|
191
|
+
},
|
|
192
|
+
"thumbSize": {
|
|
193
|
+
"type": "number"
|
|
194
|
+
},
|
|
195
|
+
"maxDistance": {
|
|
196
|
+
"type": "number"
|
|
197
|
+
},
|
|
198
|
+
"deadzone": {
|
|
199
|
+
"type": "number"
|
|
200
|
+
},
|
|
201
|
+
"directionThreshold": {
|
|
202
|
+
"type": "number"
|
|
203
|
+
},
|
|
204
|
+
"horizontalAxis": {
|
|
205
|
+
"anyOf": [
|
|
206
|
+
{
|
|
207
|
+
"const": "Horizontal",
|
|
208
|
+
"type": "string"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"const": "SecondaryHorizontal",
|
|
212
|
+
"type": "string"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
"verticalAxis": {
|
|
217
|
+
"anyOf": [
|
|
218
|
+
{
|
|
219
|
+
"const": "Vertical",
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"const": "SecondaryVertical",
|
|
224
|
+
"type": "string"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"emitDirections": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"svg": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"properties": {
|
|
234
|
+
"base": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"thumb": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"const": false,
|
|
246
|
+
"type": "boolean"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"right": {
|
|
251
|
+
"anyOf": [
|
|
252
|
+
{
|
|
253
|
+
"title": "VirtualTouchJoystickConfig",
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"type": "object",
|
|
256
|
+
"properties": {
|
|
257
|
+
"enabled": {
|
|
258
|
+
"type": "boolean"
|
|
259
|
+
},
|
|
260
|
+
"className": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"style": {
|
|
264
|
+
"title": "VirtualTouchStyle",
|
|
265
|
+
"type": "object",
|
|
266
|
+
"patternProperties": {
|
|
267
|
+
"^(.*)$": {
|
|
268
|
+
"anyOf": [
|
|
269
|
+
{
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "number"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"position": {
|
|
280
|
+
"title": "VirtualTouchPosition",
|
|
281
|
+
"additionalProperties": false,
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"top": {
|
|
285
|
+
"anyOf": [
|
|
286
|
+
{
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "number"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
},
|
|
294
|
+
"right": {
|
|
295
|
+
"anyOf": [
|
|
296
|
+
{
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "number"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
"bottom": {
|
|
305
|
+
"anyOf": [
|
|
306
|
+
{
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "number"
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
"left": {
|
|
315
|
+
"anyOf": [
|
|
316
|
+
{
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"type": "number"
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
"transform": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"size": {
|
|
330
|
+
"type": "number"
|
|
331
|
+
},
|
|
332
|
+
"thumbSize": {
|
|
333
|
+
"type": "number"
|
|
334
|
+
},
|
|
335
|
+
"maxDistance": {
|
|
336
|
+
"type": "number"
|
|
337
|
+
},
|
|
338
|
+
"deadzone": {
|
|
339
|
+
"type": "number"
|
|
340
|
+
},
|
|
341
|
+
"directionThreshold": {
|
|
342
|
+
"type": "number"
|
|
343
|
+
},
|
|
344
|
+
"horizontalAxis": {
|
|
345
|
+
"anyOf": [
|
|
346
|
+
{
|
|
347
|
+
"const": "Horizontal",
|
|
348
|
+
"type": "string"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"const": "SecondaryHorizontal",
|
|
352
|
+
"type": "string"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"verticalAxis": {
|
|
357
|
+
"anyOf": [
|
|
358
|
+
{
|
|
359
|
+
"const": "Vertical",
|
|
360
|
+
"type": "string"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"const": "SecondaryVertical",
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
"emitDirections": {
|
|
369
|
+
"type": "boolean"
|
|
370
|
+
},
|
|
371
|
+
"svg": {
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"base": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"thumb": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"const": false,
|
|
386
|
+
"type": "boolean"
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"const": false,
|
|
394
|
+
"type": "boolean"
|
|
395
|
+
}
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"buttons": {
|
|
399
|
+
"anyOf": [
|
|
400
|
+
{
|
|
401
|
+
"title": "VirtualTouchButtonsConfig",
|
|
402
|
+
"description": "Keys are touch button slots: A, B, X, Y, Start, Select, L, R, LTrigger, RTrigger, Up, Down, Left, Right.",
|
|
403
|
+
"type": "object",
|
|
404
|
+
"patternProperties": {
|
|
405
|
+
"^(.*)$": {
|
|
406
|
+
"anyOf": [
|
|
407
|
+
{
|
|
408
|
+
"title": "VirtualTouchButtonConfig",
|
|
409
|
+
"additionalProperties": false,
|
|
410
|
+
"type": "object",
|
|
411
|
+
"properties": {
|
|
412
|
+
"enabled": {
|
|
413
|
+
"type": "boolean"
|
|
414
|
+
},
|
|
415
|
+
"className": {
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"style": {
|
|
419
|
+
"title": "VirtualTouchStyle",
|
|
420
|
+
"type": "object",
|
|
421
|
+
"patternProperties": {
|
|
422
|
+
"^(.*)$": {
|
|
423
|
+
"anyOf": [
|
|
424
|
+
{
|
|
425
|
+
"type": "string"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "number"
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"position": {
|
|
435
|
+
"title": "VirtualTouchPosition",
|
|
436
|
+
"additionalProperties": false,
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"top": {
|
|
440
|
+
"anyOf": [
|
|
441
|
+
{
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "number"
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"right": {
|
|
450
|
+
"anyOf": [
|
|
451
|
+
{
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "number"
|
|
456
|
+
}
|
|
457
|
+
]
|
|
458
|
+
},
|
|
459
|
+
"bottom": {
|
|
460
|
+
"anyOf": [
|
|
461
|
+
{
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "number"
|
|
466
|
+
}
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
"left": {
|
|
470
|
+
"anyOf": [
|
|
471
|
+
{
|
|
472
|
+
"type": "string"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "number"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"transform": {
|
|
480
|
+
"type": "string"
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"size": {
|
|
485
|
+
"type": "number"
|
|
486
|
+
},
|
|
487
|
+
"label": {
|
|
488
|
+
"type": "string"
|
|
489
|
+
},
|
|
490
|
+
"svg": {
|
|
491
|
+
"type": "string"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"const": false,
|
|
497
|
+
"type": "boolean"
|
|
498
|
+
}
|
|
499
|
+
]
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"const": false,
|
|
505
|
+
"type": "boolean"
|
|
506
|
+
}
|
|
507
|
+
]
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"includeDefaults": {
|
|
512
|
+
"type": "boolean"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "StageConfigJson",
|
|
4
|
+
"title": "StageConfigJson",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"inputs": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^(.*)$": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"backgroundColor": {
|
|
20
|
+
"title": "ColorJson",
|
|
21
|
+
"description": "CSS color string or numeric hex (Three.js Color-compatible).",
|
|
22
|
+
"anyOf": [
|
|
23
|
+
{
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "number"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"backgroundImage": {
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "null"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"gravity": {
|
|
42
|
+
"title": "Vec3Components",
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": [
|
|
45
|
+
{
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "number"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "number"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"additionalItems": false,
|
|
56
|
+
"minItems": 3,
|
|
57
|
+
"maxItems": 3
|
|
58
|
+
},
|
|
59
|
+
"variables": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"patternProperties": {
|
|
62
|
+
"^(.*)$": {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"physicsRate": {
|
|
66
|
+
"exclusiveMinimum": 0,
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
"assetLoaders": {
|
|
70
|
+
"title": "StageAssetLoaderConfig",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"gltf": {
|
|
75
|
+
"title": "StageGLTFAssetLoaderConfig",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"meshopt": {
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
},
|
|
82
|
+
"ktx2TranscoderPath": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"defaultLighting": {
|
|
90
|
+
"type": "boolean"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|