@dreamboard-games/workspace-codegen 0.1.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/LICENSE +89 -0
- package/NOTICE +1 -0
- package/dist/hex-geometry.d.ts +2 -0
- package/dist/hex-geometry.js +49 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +22 -0
- package/dist/manifest-contract.d.ts +14 -0
- package/dist/manifest-contract.js +4897 -0
- package/dist/manifest-validation.d.ts +6 -0
- package/dist/manifest-validation.js +506 -0
- package/dist/ownership.d.ts +31 -0
- package/dist/ownership.js +86 -0
- package/dist/preset-card-sets.d.ts +5 -0
- package/dist/preset-card-sets.js +135 -0
- package/dist/seeds.d.ts +6 -0
- package/dist/seeds.js +766 -0
- package/ownership.json +51 -0
- package/package.json +46 -0
- package/src/__fixtures__/sdk-types/invalid-card-properties-extra-key.ts +62 -0
- package/src/__fixtures__/sdk-types/invalid-card-properties-missing-required.ts +60 -0
- package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-enum.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-nested.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-scalar.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-card-visibility.ts +40 -0
- package/src/__fixtures__/sdk-types/invalid-container-card-set-manifest.ts +62 -0
- package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-array-item.ts +43 -0
- package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-player-id.ts +43 -0
- package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-resource-id.ts +43 -0
- package/src/__fixtures__/sdk-types/invalid-die-home-per-player-zone-no-owner.ts +35 -0
- package/src/__fixtures__/sdk-types/invalid-die-seed-type-id.ts +31 -0
- package/src/__fixtures__/sdk-types/invalid-die-visibility.ts +28 -0
- package/src/__fixtures__/sdk-types/invalid-generic-board-edge-id.ts +38 -0
- package/src/__fixtures__/sdk-types/invalid-generic-board-nested-field.ts +45 -0
- package/src/__fixtures__/sdk-types/invalid-hex-edge-field-edge-id.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-hex-vertex-field-vertex-id.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-manifest.ts +143 -0
- package/src/__fixtures__/sdk-types/invalid-piece-fields-extra-key.ts +62 -0
- package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-card-id.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-enum.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-scalar.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-zone-id.ts +61 -0
- package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-container-no-owner.ts +48 -0
- package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-edge-no-owner.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-space-no-owner.ts +42 -0
- package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-vertex-no-owner.ts +49 -0
- package/src/__fixtures__/sdk-types/invalid-piece-seed-type-id.ts +30 -0
- package/src/__fixtures__/sdk-types/invalid-piece-visibility.ts +28 -0
- package/src/__fixtures__/sdk-types/invalid-slot-host-manifest.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-slot-id-manifest.ts +49 -0
- package/src/__fixtures__/sdk-types/invalid-square-board-edge-id.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-square-board-space-id.ts +47 -0
- package/src/__fixtures__/sdk-types/invalid-square-board-vertex-id.ts +49 -0
- package/src/__fixtures__/sdk-types/invalid-square-container-field-space-id.ts +59 -0
- package/src/__fixtures__/sdk-types/invalid-square-container-host-space-id.ts +49 -0
- package/src/__fixtures__/sdk-types/invalid-square-relation-field-scalar.ts +48 -0
- package/src/__fixtures__/sdk-types/invalid-square-relation-space-id.ts +48 -0
- package/src/__fixtures__/sdk-types/invalid-square-space-fields-enum.ts +44 -0
- package/src/__fixtures__/sdk-types/invalid-square-space-fields-extra-key.ts +45 -0
- package/src/__fixtures__/sdk-types/valid-die-type-omits-sides.ts +29 -0
- package/src/__fixtures__/sdk-types/valid-manifest-omits-board-templates.ts +19 -0
- package/src/__fixtures__/sdk-types/valid-manifest.ts +612 -0
- package/src/__fixtures__/sdk-types/valid-player-scoped-seed-homes.ts +59 -0
- package/src/authoring-benchmark.test.ts +362 -0
- package/src/hex-geometry.ts +69 -0
- package/src/index.ts +64 -0
- package/src/manifest-contract.test.ts +1764 -0
- package/src/manifest-contract.ts +6581 -0
- package/src/manifest-validation.test.ts +393 -0
- package/src/manifest-validation.ts +795 -0
- package/src/ownership.ts +127 -0
- package/src/preset-card-sets.ts +169 -0
- package/src/sdk-types-authoring.test.ts +361 -0
- package/src/seeds.ts +800 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineTopologyManifest } from "@dreamboard/sdk-types";
|
|
2
|
+
|
|
3
|
+
defineTopologyManifest({
|
|
4
|
+
players: {
|
|
5
|
+
minPlayers: 2,
|
|
6
|
+
maxPlayers: 2,
|
|
7
|
+
optimalPlayers: 2,
|
|
8
|
+
},
|
|
9
|
+
cardSets: [],
|
|
10
|
+
zones: [],
|
|
11
|
+
boardTemplates: [
|
|
12
|
+
{
|
|
13
|
+
id: "square-template",
|
|
14
|
+
name: "Square Template",
|
|
15
|
+
layout: "square",
|
|
16
|
+
spaceFieldsSchema: {
|
|
17
|
+
properties: {
|
|
18
|
+
terrain: {
|
|
19
|
+
type: "enum",
|
|
20
|
+
enums: ["grass", "water"],
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
spaces: [
|
|
25
|
+
{
|
|
26
|
+
id: "square-a",
|
|
27
|
+
row: 0,
|
|
28
|
+
col: 0,
|
|
29
|
+
fields: {
|
|
30
|
+
terrain: "grass",
|
|
31
|
+
extra: true,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
boards: [],
|
|
38
|
+
pieceTypes: [],
|
|
39
|
+
pieceSeeds: [],
|
|
40
|
+
dieTypes: [],
|
|
41
|
+
dieSeeds: [],
|
|
42
|
+
resources: [],
|
|
43
|
+
setupOptions: [],
|
|
44
|
+
setupProfiles: [],
|
|
45
|
+
} as const);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineTopologyManifest } from "@dreamboard/sdk-types";
|
|
2
|
+
|
|
3
|
+
defineTopologyManifest({
|
|
4
|
+
players: {
|
|
5
|
+
minPlayers: 2,
|
|
6
|
+
maxPlayers: 4,
|
|
7
|
+
optimalPlayers: 3,
|
|
8
|
+
},
|
|
9
|
+
cardSets: [],
|
|
10
|
+
zones: [],
|
|
11
|
+
boards: [],
|
|
12
|
+
pieceTypes: [],
|
|
13
|
+
pieceSeeds: [],
|
|
14
|
+
dieTypes: [
|
|
15
|
+
{
|
|
16
|
+
id: "d6",
|
|
17
|
+
name: "Standard Die",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
dieSeeds: [
|
|
21
|
+
{
|
|
22
|
+
id: "d6-a",
|
|
23
|
+
typeId: "d6",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
resources: [],
|
|
27
|
+
setupOptions: [],
|
|
28
|
+
setupProfiles: [],
|
|
29
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineTopologyManifest } from "@dreamboard/sdk-types";
|
|
2
|
+
|
|
3
|
+
defineTopologyManifest({
|
|
4
|
+
players: {
|
|
5
|
+
minPlayers: 2,
|
|
6
|
+
maxPlayers: 4,
|
|
7
|
+
optimalPlayers: 3,
|
|
8
|
+
},
|
|
9
|
+
cardSets: [],
|
|
10
|
+
zones: [],
|
|
11
|
+
boards: [],
|
|
12
|
+
pieceTypes: [],
|
|
13
|
+
pieceSeeds: [],
|
|
14
|
+
dieTypes: [],
|
|
15
|
+
dieSeeds: [],
|
|
16
|
+
resources: [],
|
|
17
|
+
setupOptions: [],
|
|
18
|
+
setupProfiles: [],
|
|
19
|
+
});
|
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
import { defineTopologyManifest } from "@dreamboard/sdk-types";
|
|
2
|
+
|
|
3
|
+
defineTopologyManifest({
|
|
4
|
+
players: {
|
|
5
|
+
minPlayers: 2,
|
|
6
|
+
maxPlayers: 2,
|
|
7
|
+
optimalPlayers: 2,
|
|
8
|
+
},
|
|
9
|
+
cardSets: [
|
|
10
|
+
{
|
|
11
|
+
id: "main",
|
|
12
|
+
name: "Main",
|
|
13
|
+
type: "manual",
|
|
14
|
+
cardSchema: {
|
|
15
|
+
type: "object",
|
|
16
|
+
properties: {
|
|
17
|
+
value: {
|
|
18
|
+
type: "integer",
|
|
19
|
+
},
|
|
20
|
+
suit: {
|
|
21
|
+
type: "enum",
|
|
22
|
+
enums: ["sun", "moon"],
|
|
23
|
+
},
|
|
24
|
+
tags: {
|
|
25
|
+
type: "array",
|
|
26
|
+
items: {
|
|
27
|
+
type: "string",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
metadata: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
label: {
|
|
34
|
+
type: "string",
|
|
35
|
+
},
|
|
36
|
+
scoreByPlayer: {
|
|
37
|
+
type: "record",
|
|
38
|
+
values: {
|
|
39
|
+
type: "integer",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
cards: [
|
|
47
|
+
{
|
|
48
|
+
type: "ace",
|
|
49
|
+
name: "Ace",
|
|
50
|
+
count: 1,
|
|
51
|
+
properties: {
|
|
52
|
+
value: 1,
|
|
53
|
+
suit: "sun",
|
|
54
|
+
tags: ["starter"],
|
|
55
|
+
metadata: {
|
|
56
|
+
label: "Ace",
|
|
57
|
+
scoreByPlayer: {
|
|
58
|
+
"player-1": 2,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
home: {
|
|
63
|
+
type: "zone",
|
|
64
|
+
zoneId: "draw",
|
|
65
|
+
},
|
|
66
|
+
visibility: {
|
|
67
|
+
visibleTo: ["player-1"],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
zones: [
|
|
74
|
+
{
|
|
75
|
+
id: "draw",
|
|
76
|
+
name: "Draw",
|
|
77
|
+
scope: "shared",
|
|
78
|
+
allowedCardSetIds: ["main"],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
boardTemplates: [
|
|
82
|
+
{
|
|
83
|
+
id: "square-template",
|
|
84
|
+
name: "Square Template",
|
|
85
|
+
layout: "square",
|
|
86
|
+
boardFieldsSchema: {
|
|
87
|
+
properties: {
|
|
88
|
+
activeSpaceId: {
|
|
89
|
+
type: "spaceId",
|
|
90
|
+
},
|
|
91
|
+
activeEdgeId: {
|
|
92
|
+
type: "edgeId",
|
|
93
|
+
},
|
|
94
|
+
activeVertexId: {
|
|
95
|
+
type: "vertexId",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
spaceFieldsSchema: {
|
|
100
|
+
properties: {
|
|
101
|
+
terrain: {
|
|
102
|
+
type: "enum",
|
|
103
|
+
enums: ["grass", "water"],
|
|
104
|
+
},
|
|
105
|
+
focusEdgeId: {
|
|
106
|
+
type: "edgeId",
|
|
107
|
+
optional: true,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
relationFieldsSchema: {
|
|
112
|
+
properties: {
|
|
113
|
+
cost: {
|
|
114
|
+
type: "integer",
|
|
115
|
+
},
|
|
116
|
+
targetSpaceId: {
|
|
117
|
+
type: "spaceId",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
containerFieldsSchema: {
|
|
122
|
+
properties: {
|
|
123
|
+
anchorSpaceId: {
|
|
124
|
+
type: "spaceId",
|
|
125
|
+
},
|
|
126
|
+
exitEdgeId: {
|
|
127
|
+
type: "edgeId",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
edgeFieldsSchema: {
|
|
132
|
+
properties: {
|
|
133
|
+
checkpointVertexId: {
|
|
134
|
+
type: "vertexId",
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
vertexFieldsSchema: {
|
|
139
|
+
properties: {
|
|
140
|
+
entryEdgeId: {
|
|
141
|
+
type: "edgeId",
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
spaces: [
|
|
146
|
+
{
|
|
147
|
+
id: "square-a",
|
|
148
|
+
row: 0,
|
|
149
|
+
col: 0,
|
|
150
|
+
fields: {
|
|
151
|
+
terrain: "grass",
|
|
152
|
+
focusEdgeId: "square-edge:0,0::1,0",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: "square-b",
|
|
157
|
+
row: 0,
|
|
158
|
+
col: 1,
|
|
159
|
+
fields: {
|
|
160
|
+
terrain: "water",
|
|
161
|
+
focusEdgeId: "square-edge:1,0::1,1",
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: "square-c",
|
|
166
|
+
row: 1,
|
|
167
|
+
col: 0,
|
|
168
|
+
fields: {
|
|
169
|
+
terrain: "grass",
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: "square-d",
|
|
174
|
+
row: 1,
|
|
175
|
+
col: 1,
|
|
176
|
+
fields: {
|
|
177
|
+
terrain: "water",
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
relations: [
|
|
182
|
+
{
|
|
183
|
+
typeId: "adjacent",
|
|
184
|
+
fromSpaceId: "square-a",
|
|
185
|
+
toSpaceId: "square-b",
|
|
186
|
+
fields: {
|
|
187
|
+
cost: 1,
|
|
188
|
+
targetSpaceId: "square-c",
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
containers: [
|
|
193
|
+
{
|
|
194
|
+
id: "square-slot",
|
|
195
|
+
name: "Square Slot",
|
|
196
|
+
host: { type: "space", spaceId: "square-d" },
|
|
197
|
+
allowedCardSetIds: ["main"],
|
|
198
|
+
fields: {
|
|
199
|
+
anchorSpaceId: "square-d",
|
|
200
|
+
exitEdgeId: "square-edge:1,0::1,1",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
edges: [
|
|
205
|
+
{
|
|
206
|
+
ref: { spaces: ["square-a", "square-b"] },
|
|
207
|
+
fields: {
|
|
208
|
+
checkpointVertexId: "square-vertex:1,1",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
vertices: [
|
|
213
|
+
{
|
|
214
|
+
ref: { spaces: ["square-a", "square-b", "square-c", "square-d"] },
|
|
215
|
+
fields: {
|
|
216
|
+
entryEdgeId: "square-edge:1,0::1,1",
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
boards: [
|
|
223
|
+
{
|
|
224
|
+
id: "square-board",
|
|
225
|
+
name: "Square Board",
|
|
226
|
+
layout: "square",
|
|
227
|
+
scope: "shared",
|
|
228
|
+
templateId: "square-template",
|
|
229
|
+
fields: {
|
|
230
|
+
activeSpaceId: "square-a",
|
|
231
|
+
activeEdgeId: "square-edge:1,0::1,1",
|
|
232
|
+
activeVertexId: "square-vertex:1,1",
|
|
233
|
+
},
|
|
234
|
+
spaces: [
|
|
235
|
+
{
|
|
236
|
+
id: "square-a",
|
|
237
|
+
row: 0,
|
|
238
|
+
col: 0,
|
|
239
|
+
fields: {
|
|
240
|
+
terrain: "water",
|
|
241
|
+
focusEdgeId: "square-edge:0,0::0,1",
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
relations: [
|
|
246
|
+
{
|
|
247
|
+
typeId: "adjacent",
|
|
248
|
+
fromSpaceId: "square-c",
|
|
249
|
+
toSpaceId: "square-d",
|
|
250
|
+
fields: {
|
|
251
|
+
cost: 2,
|
|
252
|
+
targetSpaceId: "square-a",
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
],
|
|
256
|
+
containers: [
|
|
257
|
+
{
|
|
258
|
+
id: "square-board-slot",
|
|
259
|
+
name: "Square Board Slot",
|
|
260
|
+
host: { type: "space", spaceId: "square-b" },
|
|
261
|
+
allowedCardSetIds: ["main"],
|
|
262
|
+
fields: {
|
|
263
|
+
anchorSpaceId: "square-b",
|
|
264
|
+
exitEdgeId: "square-edge:1,0::2,0",
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
edges: [
|
|
269
|
+
{
|
|
270
|
+
ref: { spaces: ["square-c", "square-d"] },
|
|
271
|
+
fields: {
|
|
272
|
+
checkpointVertexId: "square-vertex:1,1",
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
vertices: [
|
|
277
|
+
{
|
|
278
|
+
ref: { spaces: ["square-a", "square-b", "square-c", "square-d"] },
|
|
279
|
+
fields: {
|
|
280
|
+
entryEdgeId: "square-edge:1,1::2,1",
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
id: "generic-board",
|
|
287
|
+
name: "Generic Board",
|
|
288
|
+
layout: "generic",
|
|
289
|
+
scope: "shared",
|
|
290
|
+
boardFieldsSchema: {
|
|
291
|
+
properties: {
|
|
292
|
+
homeSpaceId: {
|
|
293
|
+
type: "spaceId",
|
|
294
|
+
},
|
|
295
|
+
note: {
|
|
296
|
+
type: "string",
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
spaceFieldsSchema: {
|
|
301
|
+
properties: {
|
|
302
|
+
count: {
|
|
303
|
+
type: "integer",
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
relationFieldsSchema: {
|
|
308
|
+
properties: {
|
|
309
|
+
anchorSpaceId: {
|
|
310
|
+
type: "spaceId",
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
containerFieldsSchema: {
|
|
315
|
+
properties: {
|
|
316
|
+
label: {
|
|
317
|
+
type: "string",
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
fields: {
|
|
322
|
+
homeSpaceId: "generic-a",
|
|
323
|
+
note: "ok",
|
|
324
|
+
},
|
|
325
|
+
spaces: [
|
|
326
|
+
{
|
|
327
|
+
id: "generic-a",
|
|
328
|
+
fields: {
|
|
329
|
+
count: 1,
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
id: "generic-b",
|
|
334
|
+
fields: {
|
|
335
|
+
count: 2,
|
|
336
|
+
},
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
relations: [
|
|
340
|
+
{
|
|
341
|
+
typeId: "linked",
|
|
342
|
+
fromSpaceId: "generic-a",
|
|
343
|
+
toSpaceId: "generic-b",
|
|
344
|
+
fields: {
|
|
345
|
+
anchorSpaceId: "generic-b",
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
],
|
|
349
|
+
containers: [
|
|
350
|
+
{
|
|
351
|
+
id: "generic-slot",
|
|
352
|
+
name: "Generic Slot",
|
|
353
|
+
host: { type: "space", spaceId: "generic-b" },
|
|
354
|
+
allowedCardSetIds: ["main"],
|
|
355
|
+
fields: {
|
|
356
|
+
label: "tray",
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
id: "hex-board",
|
|
363
|
+
name: "Hex Board",
|
|
364
|
+
layout: "hex",
|
|
365
|
+
scope: "shared",
|
|
366
|
+
boardFieldsSchema: {
|
|
367
|
+
properties: {
|
|
368
|
+
activeEdgeId: {
|
|
369
|
+
type: "edgeId",
|
|
370
|
+
},
|
|
371
|
+
activeVertexId: {
|
|
372
|
+
type: "vertexId",
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
spaceFieldsSchema: {
|
|
377
|
+
properties: {
|
|
378
|
+
label: {
|
|
379
|
+
type: "string",
|
|
380
|
+
},
|
|
381
|
+
relatedVertexId: {
|
|
382
|
+
type: "vertexId",
|
|
383
|
+
},
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
edgeFieldsSchema: {
|
|
387
|
+
properties: {
|
|
388
|
+
pairedEdgeId: {
|
|
389
|
+
type: "edgeId",
|
|
390
|
+
},
|
|
391
|
+
anchorVertexId: {
|
|
392
|
+
type: "vertexId",
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
vertexFieldsSchema: {
|
|
397
|
+
properties: {
|
|
398
|
+
anchorEdgeId: {
|
|
399
|
+
type: "edgeId",
|
|
400
|
+
},
|
|
401
|
+
homeSpaceId: {
|
|
402
|
+
type: "spaceId",
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
fields: {
|
|
407
|
+
activeEdgeId: "hex-edge:1,-2,1::2,-1,-1",
|
|
408
|
+
activeVertexId: "hex-vertex:1,-2,1",
|
|
409
|
+
},
|
|
410
|
+
spaces: [
|
|
411
|
+
{
|
|
412
|
+
id: "hex-a",
|
|
413
|
+
q: 0,
|
|
414
|
+
r: 0,
|
|
415
|
+
fields: {
|
|
416
|
+
label: "A",
|
|
417
|
+
relatedVertexId: "hex-vertex:1,-2,1",
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
id: "hex-b",
|
|
422
|
+
q: 1,
|
|
423
|
+
r: 0,
|
|
424
|
+
fields: {
|
|
425
|
+
label: "B",
|
|
426
|
+
relatedVertexId: "hex-vertex:1,-2,1",
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
id: "hex-c",
|
|
431
|
+
q: 0,
|
|
432
|
+
r: 1,
|
|
433
|
+
fields: {
|
|
434
|
+
label: "C",
|
|
435
|
+
relatedVertexId: "hex-vertex:1,-2,1",
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
edges: [
|
|
440
|
+
{
|
|
441
|
+
ref: { spaces: ["hex-a", "hex-b"] },
|
|
442
|
+
fields: {
|
|
443
|
+
pairedEdgeId: "hex-edge:1,-2,1::2,-1,-1",
|
|
444
|
+
anchorVertexId: "hex-vertex:1,-2,1",
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
vertices: [
|
|
449
|
+
{
|
|
450
|
+
ref: { spaces: ["hex-a", "hex-b", "hex-c"] },
|
|
451
|
+
fields: {
|
|
452
|
+
anchorEdgeId: "hex-edge:1,-2,1::2,-1,-1",
|
|
453
|
+
homeSpaceId: "hex-a",
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
pieceTypes: [
|
|
460
|
+
{
|
|
461
|
+
id: "meeple",
|
|
462
|
+
name: "Meeple",
|
|
463
|
+
fieldsSchema: {
|
|
464
|
+
properties: {
|
|
465
|
+
stamina: {
|
|
466
|
+
type: "integer",
|
|
467
|
+
},
|
|
468
|
+
state: {
|
|
469
|
+
type: "enum",
|
|
470
|
+
enums: ["ready", "spent"],
|
|
471
|
+
},
|
|
472
|
+
linkedCard: {
|
|
473
|
+
type: "cardId",
|
|
474
|
+
},
|
|
475
|
+
assignedZone: {
|
|
476
|
+
type: "zoneId",
|
|
477
|
+
optional: true,
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
id: "player-mat",
|
|
484
|
+
name: "Player Mat",
|
|
485
|
+
slots: [{ id: "worker-rest", name: "Worker Rest" }],
|
|
486
|
+
},
|
|
487
|
+
],
|
|
488
|
+
pieceSeeds: [
|
|
489
|
+
{
|
|
490
|
+
id: "mat-alpha",
|
|
491
|
+
typeId: "player-mat",
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: "worker-a",
|
|
495
|
+
typeId: "meeple",
|
|
496
|
+
ownerId: "player-2",
|
|
497
|
+
fields: {
|
|
498
|
+
stamina: 3,
|
|
499
|
+
state: "ready",
|
|
500
|
+
linkedCard: "ace",
|
|
501
|
+
assignedZone: "draw",
|
|
502
|
+
},
|
|
503
|
+
visibility: {
|
|
504
|
+
visibleTo: ["player-1"],
|
|
505
|
+
},
|
|
506
|
+
home: {
|
|
507
|
+
type: "slot",
|
|
508
|
+
host: {
|
|
509
|
+
kind: "piece",
|
|
510
|
+
id: "mat-alpha",
|
|
511
|
+
},
|
|
512
|
+
slotId: "worker-rest",
|
|
513
|
+
},
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "worker-b",
|
|
517
|
+
typeId: "meeple",
|
|
518
|
+
ownerId: "player-2",
|
|
519
|
+
home: {
|
|
520
|
+
type: "space",
|
|
521
|
+
boardId: "square-board",
|
|
522
|
+
spaceId: "square-a",
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
],
|
|
526
|
+
dieTypes: [
|
|
527
|
+
{
|
|
528
|
+
id: "d6",
|
|
529
|
+
name: "D6",
|
|
530
|
+
sides: 6,
|
|
531
|
+
fieldsSchema: {
|
|
532
|
+
properties: {
|
|
533
|
+
owner: {
|
|
534
|
+
type: "playerId",
|
|
535
|
+
},
|
|
536
|
+
resource: {
|
|
537
|
+
type: "resourceId",
|
|
538
|
+
},
|
|
539
|
+
history: {
|
|
540
|
+
type: "array",
|
|
541
|
+
items: {
|
|
542
|
+
type: "integer",
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
id: "die-holder",
|
|
550
|
+
name: "Die Holder",
|
|
551
|
+
sides: 6,
|
|
552
|
+
slots: [{ id: "staging", name: "Staging" }],
|
|
553
|
+
},
|
|
554
|
+
],
|
|
555
|
+
dieSeeds: [
|
|
556
|
+
{
|
|
557
|
+
id: "holder-a",
|
|
558
|
+
typeId: "die-holder",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
id: "d6-a",
|
|
562
|
+
typeId: "d6",
|
|
563
|
+
ownerId: "player-1",
|
|
564
|
+
fields: {
|
|
565
|
+
owner: "player-1",
|
|
566
|
+
resource: "supply",
|
|
567
|
+
history: [1, 6],
|
|
568
|
+
},
|
|
569
|
+
visibility: {
|
|
570
|
+
visibleTo: ["player-2"],
|
|
571
|
+
},
|
|
572
|
+
home: {
|
|
573
|
+
type: "slot",
|
|
574
|
+
host: {
|
|
575
|
+
kind: "die",
|
|
576
|
+
id: "holder-a",
|
|
577
|
+
},
|
|
578
|
+
slotId: "staging",
|
|
579
|
+
},
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
id: "d6-b",
|
|
583
|
+
typeId: "d6",
|
|
584
|
+
ownerId: "player-1",
|
|
585
|
+
home: {
|
|
586
|
+
type: "container",
|
|
587
|
+
boardId: "square-board",
|
|
588
|
+
containerId: "square-board-slot",
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
resources: [{ id: "supply", name: "Supply" }],
|
|
593
|
+
setupOptions: [
|
|
594
|
+
{
|
|
595
|
+
id: "mode",
|
|
596
|
+
name: "Mode",
|
|
597
|
+
choices: [
|
|
598
|
+
{ id: "standard", label: "Standard" },
|
|
599
|
+
{ id: "draft", label: "Draft" },
|
|
600
|
+
],
|
|
601
|
+
},
|
|
602
|
+
],
|
|
603
|
+
setupProfiles: [
|
|
604
|
+
{
|
|
605
|
+
id: "standard-profile",
|
|
606
|
+
name: "Standard",
|
|
607
|
+
optionValues: {
|
|
608
|
+
mode: "standard",
|
|
609
|
+
},
|
|
610
|
+
},
|
|
611
|
+
],
|
|
612
|
+
} as const);
|