@hefty-studios/arena-game-data 1.0.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.
@@ -0,0 +1,426 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://arena-game.local/schema/game-data.bundle.schema.json",
4
+ "title": "Arena Game Website Data Bundle",
5
+ "description": "Website-oriented export of supported Unity data assets under Assets/DataAssets. Canonical ids are Unity GUIDs; relations are expressed as explicit refs.",
6
+ "type": "object",
7
+ "properties": {
8
+ "schemaVersion": {
9
+ "type": "string"
10
+ },
11
+ "generatedAtUtc": {
12
+ "type": "string"
13
+ },
14
+ "sourceRevision": {
15
+ "type": [
16
+ "string",
17
+ "null"
18
+ ]
19
+ },
20
+ "exportScope": {
21
+ "type": "string"
22
+ },
23
+ "warnings": {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "classCatalogs": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "object",
33
+ "properties": {
34
+ "id": {
35
+ "type": "string"
36
+ },
37
+ "type": {
38
+ "const": "classCatalog"
39
+ },
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "displayName": {
44
+ "type": "string"
45
+ },
46
+ "slug": {
47
+ "type": "string"
48
+ },
49
+ "sourceAssetPath": {
50
+ "type": "string"
51
+ },
52
+ "sourceClassIdentifier": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "required": [
57
+ "id",
58
+ "type",
59
+ "name",
60
+ "displayName",
61
+ "slug",
62
+ "sourceAssetPath",
63
+ "sourceClassIdentifier"
64
+ ],
65
+ "additionalProperties": true
66
+ }
67
+ },
68
+ "classes": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "object",
72
+ "properties": {
73
+ "id": {
74
+ "type": "string"
75
+ },
76
+ "type": {
77
+ "const": "class"
78
+ },
79
+ "name": {
80
+ "type": "string"
81
+ },
82
+ "displayName": {
83
+ "type": "string"
84
+ },
85
+ "slug": {
86
+ "type": "string"
87
+ },
88
+ "sourceAssetPath": {
89
+ "type": "string"
90
+ },
91
+ "sourceClassIdentifier": {
92
+ "type": "string"
93
+ }
94
+ },
95
+ "required": [
96
+ "id",
97
+ "type",
98
+ "name",
99
+ "displayName",
100
+ "slug",
101
+ "sourceAssetPath",
102
+ "sourceClassIdentifier"
103
+ ],
104
+ "additionalProperties": true
105
+ }
106
+ },
107
+ "specialisations": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "object",
111
+ "properties": {
112
+ "id": {
113
+ "type": "string"
114
+ },
115
+ "type": {
116
+ "const": "specialisation"
117
+ },
118
+ "name": {
119
+ "type": "string"
120
+ },
121
+ "displayName": {
122
+ "type": "string"
123
+ },
124
+ "slug": {
125
+ "type": "string"
126
+ },
127
+ "sourceAssetPath": {
128
+ "type": "string"
129
+ },
130
+ "sourceClassIdentifier": {
131
+ "type": "string"
132
+ }
133
+ },
134
+ "required": [
135
+ "id",
136
+ "type",
137
+ "name",
138
+ "displayName",
139
+ "slug",
140
+ "sourceAssetPath",
141
+ "sourceClassIdentifier"
142
+ ],
143
+ "additionalProperties": true
144
+ }
145
+ },
146
+ "abilityPools": {
147
+ "type": "array",
148
+ "items": {
149
+ "type": "object",
150
+ "properties": {
151
+ "id": {
152
+ "type": "string"
153
+ },
154
+ "type": {
155
+ "const": "abilityPool"
156
+ },
157
+ "name": {
158
+ "type": "string"
159
+ },
160
+ "displayName": {
161
+ "type": "string"
162
+ },
163
+ "slug": {
164
+ "type": "string"
165
+ },
166
+ "sourceAssetPath": {
167
+ "type": "string"
168
+ },
169
+ "sourceClassIdentifier": {
170
+ "type": "string"
171
+ }
172
+ },
173
+ "required": [
174
+ "id",
175
+ "type",
176
+ "name",
177
+ "displayName",
178
+ "slug",
179
+ "sourceAssetPath",
180
+ "sourceClassIdentifier"
181
+ ],
182
+ "additionalProperties": true
183
+ }
184
+ },
185
+ "abilities": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "object",
189
+ "properties": {
190
+ "id": {
191
+ "type": "string"
192
+ },
193
+ "type": {
194
+ "const": "ability"
195
+ },
196
+ "name": {
197
+ "type": "string"
198
+ },
199
+ "displayName": {
200
+ "type": "string"
201
+ },
202
+ "slug": {
203
+ "type": "string"
204
+ },
205
+ "sourceAssetPath": {
206
+ "type": "string"
207
+ },
208
+ "sourceClassIdentifier": {
209
+ "type": "string"
210
+ }
211
+ },
212
+ "required": [
213
+ "id",
214
+ "type",
215
+ "name",
216
+ "displayName",
217
+ "slug",
218
+ "sourceAssetPath",
219
+ "sourceClassIdentifier"
220
+ ],
221
+ "additionalProperties": true
222
+ }
223
+ },
224
+ "autoAttacks": {
225
+ "type": "array",
226
+ "items": {
227
+ "type": "object",
228
+ "properties": {
229
+ "id": {
230
+ "type": "string"
231
+ },
232
+ "type": {
233
+ "const": "autoAttack"
234
+ },
235
+ "name": {
236
+ "type": "string"
237
+ },
238
+ "displayName": {
239
+ "type": "string"
240
+ },
241
+ "slug": {
242
+ "type": "string"
243
+ },
244
+ "sourceAssetPath": {
245
+ "type": "string"
246
+ },
247
+ "sourceClassIdentifier": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ "required": [
252
+ "id",
253
+ "type",
254
+ "name",
255
+ "displayName",
256
+ "slug",
257
+ "sourceAssetPath",
258
+ "sourceClassIdentifier"
259
+ ],
260
+ "additionalProperties": true
261
+ }
262
+ },
263
+ "buffs": {
264
+ "type": "array",
265
+ "items": {
266
+ "type": "object",
267
+ "properties": {
268
+ "id": {
269
+ "type": "string"
270
+ },
271
+ "type": {
272
+ "const": "buff"
273
+ },
274
+ "name": {
275
+ "type": "string"
276
+ },
277
+ "displayName": {
278
+ "type": "string"
279
+ },
280
+ "slug": {
281
+ "type": "string"
282
+ },
283
+ "sourceAssetPath": {
284
+ "type": "string"
285
+ },
286
+ "sourceClassIdentifier": {
287
+ "type": "string"
288
+ }
289
+ },
290
+ "required": [
291
+ "id",
292
+ "type",
293
+ "name",
294
+ "displayName",
295
+ "slug",
296
+ "sourceAssetPath",
297
+ "sourceClassIdentifier"
298
+ ],
299
+ "additionalProperties": true
300
+ }
301
+ },
302
+ "debuffs": {
303
+ "type": "array",
304
+ "items": {
305
+ "type": "object",
306
+ "properties": {
307
+ "id": {
308
+ "type": "string"
309
+ },
310
+ "type": {
311
+ "const": "debuff"
312
+ },
313
+ "name": {
314
+ "type": "string"
315
+ },
316
+ "displayName": {
317
+ "type": "string"
318
+ },
319
+ "slug": {
320
+ "type": "string"
321
+ },
322
+ "sourceAssetPath": {
323
+ "type": "string"
324
+ },
325
+ "sourceClassIdentifier": {
326
+ "type": "string"
327
+ }
328
+ },
329
+ "required": [
330
+ "id",
331
+ "type",
332
+ "name",
333
+ "displayName",
334
+ "slug",
335
+ "sourceAssetPath",
336
+ "sourceClassIdentifier"
337
+ ],
338
+ "additionalProperties": true
339
+ }
340
+ },
341
+ "gameplaySceneCatalogs": {
342
+ "type": "array",
343
+ "items": {
344
+ "type": "object",
345
+ "properties": {
346
+ "id": {
347
+ "type": "string"
348
+ },
349
+ "type": {
350
+ "const": "gameplaySceneCatalog"
351
+ },
352
+ "name": {
353
+ "type": "string"
354
+ },
355
+ "displayName": {
356
+ "type": "string"
357
+ },
358
+ "slug": {
359
+ "type": "string"
360
+ },
361
+ "sourceAssetPath": {
362
+ "type": "string"
363
+ },
364
+ "sourceClassIdentifier": {
365
+ "type": "string"
366
+ }
367
+ },
368
+ "required": [
369
+ "id",
370
+ "type",
371
+ "name",
372
+ "displayName",
373
+ "slug",
374
+ "sourceAssetPath",
375
+ "sourceClassIdentifier"
376
+ ],
377
+ "additionalProperties": true
378
+ }
379
+ },
380
+ "metadata": {
381
+ "type": "object",
382
+ "additionalProperties": false,
383
+ "properties": {
384
+ "assetCount": {
385
+ "type": "integer"
386
+ },
387
+ "supportedAssetCount": {
388
+ "type": "integer"
389
+ },
390
+ "unsupportedAssetCount": {
391
+ "type": "integer"
392
+ },
393
+ "sections": {
394
+ "type": "object",
395
+ "additionalProperties": {
396
+ "type": "integer"
397
+ }
398
+ }
399
+ },
400
+ "required": [
401
+ "assetCount",
402
+ "supportedAssetCount",
403
+ "unsupportedAssetCount",
404
+ "sections"
405
+ ]
406
+ }
407
+ },
408
+ "required": [
409
+ "schemaVersion",
410
+ "generatedAtUtc",
411
+ "sourceRevision",
412
+ "exportScope",
413
+ "warnings",
414
+ "classCatalogs",
415
+ "classes",
416
+ "specialisations",
417
+ "abilityPools",
418
+ "abilities",
419
+ "autoAttacks",
420
+ "buffs",
421
+ "debuffs",
422
+ "gameplaySceneCatalogs",
423
+ "metadata"
424
+ ],
425
+ "additionalProperties": false
426
+ }
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare const gameData: unknown;
2
+
3
+ export { gameData };
4
+ export default gameData;
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import gameData from "./game-data.bundle.json" with { type: "json" };
2
+
3
+ export { gameData };
4
+ export default gameData;
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@hefty-studios/arena-game-data",
3
+ "version": "1.0.0",
4
+ "description": "Generated Arena Game data bundle for website and tooling consumers.",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "files": [
9
+ "README.md",
10
+ "index.js",
11
+ "index.d.ts",
12
+ "game-data.bundle.json",
13
+ "game-data.bundle.schema.json"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "types": "./index.d.ts",
18
+ "default": "./index.js"
19
+ },
20
+ "./game-data.bundle.json": "./game-data.bundle.json",
21
+ "./game-data.bundle.schema.json": "./game-data.bundle.schema.json"
22
+ },
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/hefty-studios/arena-game.git"
29
+ },
30
+ "homepage": "https://github.com/hefty-studios/arena-game"
31
+ }