@zylem/game-lib 0.7.0 → 0.8.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/README.md +15 -1
- package/dist/actions.d.ts +71 -8
- package/dist/actions.js +1 -1
- package/dist/api/game-lib.api.json +54074 -0
- package/dist/api/game-lib.api.md +4544 -0
- package/dist/api/game-lib.d.ts +8258 -0
- package/dist/api/game-lib.typedoc.json +345421 -0
- package/dist/audio.js +1 -1
- package/dist/{base-node-life-cycle-CnJ-7zX-.d.ts → base-node-life-cycle-D2NuN1VB.d.ts} +12 -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-7FR5JSQ2.js +1 -0
- package/dist/chunk-7GYFZKK7.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-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-E3UBSUPX.js +1 -0
- package/dist/chunk-FKIKN7RP.js +24 -0
- package/dist/chunk-G4HONLWC.js +1 -0
- package/dist/chunk-IKWE2W6L.js +1 -0
- package/dist/chunk-IPWUDOV5.js +1 -0
- package/dist/chunk-JEHFHUH4.js +0 -0
- package/dist/chunk-JNKPTL77.js +1 -0
- package/dist/chunk-JQKS42G4.js +1 -0
- package/dist/chunk-M3XNO56P.js +1 -0
- package/dist/chunk-ORIDWL3T.js +0 -0
- package/dist/chunk-QB3NL7VQ.js +1 -0
- package/dist/chunk-TAUWDQZF.js +9 -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-XNDS4YFR.js +1 -0
- package/dist/chunk-XNHVRFAK.js +1 -0
- package/dist/chunk-ZRT3ZQVH.js +1 -0
- package/dist/collision-builder-jF-toPIl.d.ts +38 -0
- package/dist/core.d.ts +45 -30
- package/dist/core.js +1 -24
- package/dist/debug-state-BPT6jEog.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-0-vCnli7.d.ts} +3 -3
- package/dist/{entity-DNkYKfdp.d.ts → entity-BdSI8CL3.d.ts} +63 -444
- package/dist/entity-DZbFQ1Wg.d.ts +28 -0
- package/dist/{entity-type-map-C94h2TDW.d.ts → entity-type-map-Bd69SpAS.d.ts} +153 -6
- package/dist/entity.d.ts +11 -8
- 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-C1FHVqXl.d.ts} +429 -133
- package/dist/game-default-QHROHW2O.js +1 -0
- package/dist/{game-interfaces-tfpM5NBk.d.ts → game-interfaces-mchNYSZE.d.ts} +2 -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 +4 -3
- package/dist/input.js +1 -1
- package/dist/{material-Wz83vTTp.d.ts → material-9vJ6SZaI.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 +625 -0
- package/dist/schema/input-config.schema.json +499 -0
- package/dist/schema/stage-config.schema.json +93 -0
- package/dist/schema/stage.schema.json +271 -0
- package/dist/schema.d.ts +538 -0
- package/dist/schema.js +1 -0
- package/dist/stage-transition-CmGpV4tc.d.ts +46 -0
- package/dist/vector-CiSHbivc.d.ts +133 -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-C3bn6BTI.d.ts} +62 -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-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,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "EntityJson",
|
|
4
|
+
"title": "EntityJson",
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"type": {
|
|
13
|
+
"const": "text",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"position": {
|
|
17
|
+
"title": "Vector2",
|
|
18
|
+
"description": "A 2D position as [x, y].",
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": [
|
|
21
|
+
{
|
|
22
|
+
"type": "number"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "number"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"additionalItems": false,
|
|
29
|
+
"minItems": 2,
|
|
30
|
+
"maxItems": 2
|
|
31
|
+
},
|
|
32
|
+
"data": {
|
|
33
|
+
"title": "TextEntityData",
|
|
34
|
+
"additionalProperties": true,
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"value": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"color": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"fontSize": {
|
|
44
|
+
"type": "number"
|
|
45
|
+
},
|
|
46
|
+
"fontFamily": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"id",
|
|
54
|
+
"type"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"id": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"type": {
|
|
64
|
+
"const": "sprite",
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"position": {
|
|
68
|
+
"title": "Vector2",
|
|
69
|
+
"description": "A 2D position as [x, y].",
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": [
|
|
72
|
+
{
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "number"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"additionalItems": false,
|
|
80
|
+
"minItems": 2,
|
|
81
|
+
"maxItems": 2
|
|
82
|
+
},
|
|
83
|
+
"data": {
|
|
84
|
+
"title": "SpriteEntityData",
|
|
85
|
+
"additionalProperties": true,
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"imagePath": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"width": {
|
|
92
|
+
"type": "number"
|
|
93
|
+
},
|
|
94
|
+
"height": {
|
|
95
|
+
"type": "number"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": [
|
|
101
|
+
"id",
|
|
102
|
+
"type"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"id": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"type": {
|
|
112
|
+
"const": "line",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"position": {
|
|
116
|
+
"title": "Vector2",
|
|
117
|
+
"description": "A 2D position as [x, y].",
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": [
|
|
120
|
+
{
|
|
121
|
+
"type": "number"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "number"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"additionalItems": false,
|
|
128
|
+
"minItems": 2,
|
|
129
|
+
"maxItems": 2
|
|
130
|
+
},
|
|
131
|
+
"data": {
|
|
132
|
+
"title": "LineEntityData",
|
|
133
|
+
"additionalProperties": true,
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"points": {
|
|
137
|
+
"minItems": 2,
|
|
138
|
+
"type": "array",
|
|
139
|
+
"items": {
|
|
140
|
+
"title": "Vector3Tuple",
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": [
|
|
143
|
+
{
|
|
144
|
+
"type": "number"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"type": "number"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "number"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"additionalItems": false,
|
|
154
|
+
"minItems": 3,
|
|
155
|
+
"maxItems": 3
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"color": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"colors": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "string"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"linewidth": {
|
|
168
|
+
"type": "number"
|
|
169
|
+
},
|
|
170
|
+
"worldUnits": {
|
|
171
|
+
"type": "boolean"
|
|
172
|
+
},
|
|
173
|
+
"alphaToCoverage": {
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"opacity": {
|
|
177
|
+
"type": "number"
|
|
178
|
+
},
|
|
179
|
+
"transparent": {
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
},
|
|
182
|
+
"dashed": {
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
"dashSize": {
|
|
186
|
+
"type": "number"
|
|
187
|
+
},
|
|
188
|
+
"gapSize": {
|
|
189
|
+
"type": "number"
|
|
190
|
+
},
|
|
191
|
+
"pickThreshold": {
|
|
192
|
+
"type": "number"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": [
|
|
196
|
+
"points"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"required": [
|
|
201
|
+
"id",
|
|
202
|
+
"type"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "object",
|
|
207
|
+
"properties": {
|
|
208
|
+
"id": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
},
|
|
211
|
+
"type": {
|
|
212
|
+
"minLength": 1,
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"position": {
|
|
216
|
+
"title": "Vector2",
|
|
217
|
+
"description": "A 2D position as [x, y].",
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": [
|
|
220
|
+
{
|
|
221
|
+
"type": "number"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"type": "number"
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"additionalItems": false,
|
|
228
|
+
"minItems": 2,
|
|
229
|
+
"maxItems": 2
|
|
230
|
+
},
|
|
231
|
+
"data": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"patternProperties": {
|
|
234
|
+
"^(.*)$": {}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"required": [
|
|
239
|
+
"id",
|
|
240
|
+
"type"
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|