@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,28 @@
|
|
|
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
|
+
boards: [],
|
|
13
|
+
pieceTypes: [],
|
|
14
|
+
pieceSeeds: [],
|
|
15
|
+
dieTypes: [{ id: "d6", name: "D6", sides: 6 }],
|
|
16
|
+
dieSeeds: [
|
|
17
|
+
{
|
|
18
|
+
id: "die-a",
|
|
19
|
+
typeId: "d6",
|
|
20
|
+
visibility: {
|
|
21
|
+
visibleTo: ["player-3"],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
resources: [],
|
|
26
|
+
setupOptions: [],
|
|
27
|
+
setupProfiles: [],
|
|
28
|
+
} as const);
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
boards: [
|
|
13
|
+
{
|
|
14
|
+
id: "generic-board",
|
|
15
|
+
name: "Generic Board",
|
|
16
|
+
layout: "generic",
|
|
17
|
+
scope: "shared",
|
|
18
|
+
boardFieldsSchema: {
|
|
19
|
+
properties: {
|
|
20
|
+
edgeRef: {
|
|
21
|
+
type: "edgeId",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
fields: {
|
|
26
|
+
edgeRef: "square-edge:0,0::1,0",
|
|
27
|
+
},
|
|
28
|
+
spaces: [{ id: "space-a" }],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
pieceTypes: [],
|
|
32
|
+
pieceSeeds: [],
|
|
33
|
+
dieTypes: [],
|
|
34
|
+
dieSeeds: [],
|
|
35
|
+
resources: [],
|
|
36
|
+
setupOptions: [],
|
|
37
|
+
setupProfiles: [],
|
|
38
|
+
} as const);
|
|
@@ -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
|
+
boards: [
|
|
13
|
+
{
|
|
14
|
+
id: "generic-board",
|
|
15
|
+
name: "Generic Board",
|
|
16
|
+
layout: "generic",
|
|
17
|
+
scope: "shared",
|
|
18
|
+
boardFieldsSchema: {
|
|
19
|
+
properties: {
|
|
20
|
+
metadata: {
|
|
21
|
+
type: "object",
|
|
22
|
+
properties: {
|
|
23
|
+
note: {
|
|
24
|
+
type: "string",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
fields: {
|
|
31
|
+
metadata: {
|
|
32
|
+
note: 1,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
spaces: [{ id: "space-a" }],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
pieceTypes: [],
|
|
39
|
+
pieceSeeds: [],
|
|
40
|
+
dieTypes: [],
|
|
41
|
+
dieSeeds: [],
|
|
42
|
+
resources: [],
|
|
43
|
+
setupOptions: [],
|
|
44
|
+
setupProfiles: [],
|
|
45
|
+
} as const);
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
boards: [
|
|
13
|
+
{
|
|
14
|
+
id: "hex-board",
|
|
15
|
+
name: "Hex Board",
|
|
16
|
+
layout: "hex",
|
|
17
|
+
scope: "shared",
|
|
18
|
+
edgeFieldsSchema: {
|
|
19
|
+
properties: {
|
|
20
|
+
pairedEdgeId: {
|
|
21
|
+
type: "edgeId",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
spaces: [
|
|
26
|
+
{ id: "hex-a", q: 0, r: 0 },
|
|
27
|
+
{ id: "hex-b", q: 1, r: 0 },
|
|
28
|
+
{ id: "hex-c", q: 0, r: 1 },
|
|
29
|
+
],
|
|
30
|
+
edges: [
|
|
31
|
+
{
|
|
32
|
+
ref: { spaces: ["hex-a", "hex-b"] },
|
|
33
|
+
fields: {
|
|
34
|
+
pairedEdgeId: "hex-edge:missing",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
pieceTypes: [],
|
|
41
|
+
pieceSeeds: [],
|
|
42
|
+
dieTypes: [],
|
|
43
|
+
dieSeeds: [],
|
|
44
|
+
resources: [],
|
|
45
|
+
setupOptions: [],
|
|
46
|
+
setupProfiles: [],
|
|
47
|
+
} as const);
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
boards: [
|
|
13
|
+
{
|
|
14
|
+
id: "hex-board",
|
|
15
|
+
name: "Hex Board",
|
|
16
|
+
layout: "hex",
|
|
17
|
+
scope: "shared",
|
|
18
|
+
vertexFieldsSchema: {
|
|
19
|
+
properties: {
|
|
20
|
+
homeVertexId: {
|
|
21
|
+
type: "vertexId",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
spaces: [
|
|
26
|
+
{ id: "hex-a", q: 0, r: 0 },
|
|
27
|
+
{ id: "hex-b", q: 1, r: 0 },
|
|
28
|
+
{ id: "hex-c", q: 0, r: 1 },
|
|
29
|
+
],
|
|
30
|
+
vertices: [
|
|
31
|
+
{
|
|
32
|
+
ref: { spaces: ["hex-a", "hex-b", "hex-c"] },
|
|
33
|
+
fields: {
|
|
34
|
+
homeVertexId: "hex-vertex:missing",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
pieceTypes: [],
|
|
41
|
+
pieceSeeds: [],
|
|
42
|
+
dieTypes: [],
|
|
43
|
+
dieSeeds: [],
|
|
44
|
+
resources: [],
|
|
45
|
+
setupOptions: [],
|
|
46
|
+
setupProfiles: [],
|
|
47
|
+
} as const);
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
},
|
|
18
|
+
cards: [
|
|
19
|
+
{
|
|
20
|
+
type: "ace",
|
|
21
|
+
name: "Ace",
|
|
22
|
+
count: 1,
|
|
23
|
+
properties: {},
|
|
24
|
+
home: {
|
|
25
|
+
type: "zone",
|
|
26
|
+
zoneId: "discard",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
zones: [
|
|
33
|
+
{
|
|
34
|
+
id: "draw",
|
|
35
|
+
name: "Draw",
|
|
36
|
+
scope: "shared",
|
|
37
|
+
allowedCardSetIds: ["missing-card-set"],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
boardTemplates: [],
|
|
41
|
+
boards: [
|
|
42
|
+
{
|
|
43
|
+
id: "board-a",
|
|
44
|
+
name: "Board A",
|
|
45
|
+
layout: "square",
|
|
46
|
+
scope: "shared",
|
|
47
|
+
spaces: [{ id: "space-a", row: 0, col: 0 }],
|
|
48
|
+
containers: [
|
|
49
|
+
{ id: "supply-a", name: "Supply A", host: { type: "board" } },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "board-b",
|
|
54
|
+
name: "Board B",
|
|
55
|
+
layout: "square",
|
|
56
|
+
scope: "shared",
|
|
57
|
+
spaces: [{ id: "space-b", row: 0, col: 0 }],
|
|
58
|
+
containers: [
|
|
59
|
+
{ id: "supply-b", name: "Supply B", host: { type: "board" } },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
pieceTypes: [
|
|
64
|
+
{ id: "meeple", name: "Meeple" },
|
|
65
|
+
{
|
|
66
|
+
id: "player-mat",
|
|
67
|
+
name: "Player Mat",
|
|
68
|
+
slots: [{ id: "worker-rest", name: "Worker Rest" }],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
pieceSeeds: [
|
|
72
|
+
{
|
|
73
|
+
id: "mat-alpha",
|
|
74
|
+
typeId: "player-mat",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "worker-a",
|
|
78
|
+
typeId: "meeple",
|
|
79
|
+
ownerId: "player-1",
|
|
80
|
+
home: {
|
|
81
|
+
type: "space",
|
|
82
|
+
boardId: "board-a",
|
|
83
|
+
spaceId: "space-b",
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
typeId: "meeple",
|
|
88
|
+
ownerId: "player-1",
|
|
89
|
+
home: {
|
|
90
|
+
type: "slot",
|
|
91
|
+
host: {
|
|
92
|
+
kind: "piece",
|
|
93
|
+
id: "missing-host",
|
|
94
|
+
},
|
|
95
|
+
slotId: "worker-rest",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
dieTypes: [
|
|
100
|
+
{ id: "d6", name: "D6", sides: 6 },
|
|
101
|
+
{
|
|
102
|
+
id: "die-holder",
|
|
103
|
+
name: "Die Holder",
|
|
104
|
+
sides: 6,
|
|
105
|
+
slots: [{ id: "staging", name: "Staging" }],
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
dieSeeds: [
|
|
109
|
+
{
|
|
110
|
+
id: "holder-a",
|
|
111
|
+
typeId: "die-holder",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "d6-a",
|
|
115
|
+
typeId: "d6",
|
|
116
|
+
home: {
|
|
117
|
+
type: "slot",
|
|
118
|
+
host: {
|
|
119
|
+
kind: "die",
|
|
120
|
+
id: "holder-a",
|
|
121
|
+
},
|
|
122
|
+
slotId: "missing-slot",
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
resources: [],
|
|
127
|
+
setupOptions: [
|
|
128
|
+
{
|
|
129
|
+
id: "mode",
|
|
130
|
+
name: "Mode",
|
|
131
|
+
choices: [{ id: "standard", label: "Standard" }],
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
setupProfiles: [
|
|
135
|
+
{
|
|
136
|
+
id: "standard-profile",
|
|
137
|
+
name: "Standard",
|
|
138
|
+
optionValues: {
|
|
139
|
+
mode: "draft",
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
} as const);
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
properties: {},
|
|
16
|
+
},
|
|
17
|
+
cards: [{ type: "ace", name: "Ace", count: 1, properties: {} }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
zones: [
|
|
21
|
+
{
|
|
22
|
+
id: "draw",
|
|
23
|
+
name: "Draw",
|
|
24
|
+
scope: "shared",
|
|
25
|
+
allowedCardSetIds: ["main"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
boardTemplates: [],
|
|
29
|
+
boards: [],
|
|
30
|
+
pieceTypes: [
|
|
31
|
+
{
|
|
32
|
+
id: "meeple",
|
|
33
|
+
name: "Meeple",
|
|
34
|
+
fieldsSchema: {
|
|
35
|
+
properties: {
|
|
36
|
+
stamina: { type: "integer" },
|
|
37
|
+
state: { type: "enum", enums: ["ready", "spent"] },
|
|
38
|
+
linkedCard: { type: "cardId" },
|
|
39
|
+
assignedZone: { type: "zoneId" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
pieceSeeds: [
|
|
45
|
+
{
|
|
46
|
+
id: "worker-a",
|
|
47
|
+
typeId: "meeple",
|
|
48
|
+
fields: {
|
|
49
|
+
stamina: 2,
|
|
50
|
+
state: "ready",
|
|
51
|
+
linkedCard: "ace",
|
|
52
|
+
assignedZone: "draw",
|
|
53
|
+
extra: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
dieTypes: [],
|
|
58
|
+
dieSeeds: [],
|
|
59
|
+
resources: [],
|
|
60
|
+
setupOptions: [],
|
|
61
|
+
setupProfiles: [],
|
|
62
|
+
} as const);
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
properties: {},
|
|
16
|
+
},
|
|
17
|
+
cards: [{ type: "ace", name: "Ace", count: 1, properties: {} }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
zones: [
|
|
21
|
+
{
|
|
22
|
+
id: "draw",
|
|
23
|
+
name: "Draw",
|
|
24
|
+
scope: "shared",
|
|
25
|
+
allowedCardSetIds: ["main"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
boardTemplates: [],
|
|
29
|
+
boards: [],
|
|
30
|
+
pieceTypes: [
|
|
31
|
+
{
|
|
32
|
+
id: "meeple",
|
|
33
|
+
name: "Meeple",
|
|
34
|
+
fieldsSchema: {
|
|
35
|
+
properties: {
|
|
36
|
+
stamina: { type: "integer" },
|
|
37
|
+
state: { type: "enum", enums: ["ready", "spent"] },
|
|
38
|
+
linkedCard: { type: "cardId" },
|
|
39
|
+
assignedZone: { type: "zoneId" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
pieceSeeds: [
|
|
45
|
+
{
|
|
46
|
+
id: "worker-a",
|
|
47
|
+
typeId: "meeple",
|
|
48
|
+
fields: {
|
|
49
|
+
stamina: 2,
|
|
50
|
+
state: "ready",
|
|
51
|
+
linkedCard: "missing-card",
|
|
52
|
+
assignedZone: "draw",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
dieTypes: [],
|
|
57
|
+
dieSeeds: [],
|
|
58
|
+
resources: [],
|
|
59
|
+
setupOptions: [],
|
|
60
|
+
setupProfiles: [],
|
|
61
|
+
} as const);
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
properties: {},
|
|
16
|
+
},
|
|
17
|
+
cards: [{ type: "ace", name: "Ace", count: 1, properties: {} }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
zones: [
|
|
21
|
+
{
|
|
22
|
+
id: "draw",
|
|
23
|
+
name: "Draw",
|
|
24
|
+
scope: "shared",
|
|
25
|
+
allowedCardSetIds: ["main"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
boardTemplates: [],
|
|
29
|
+
boards: [],
|
|
30
|
+
pieceTypes: [
|
|
31
|
+
{
|
|
32
|
+
id: "meeple",
|
|
33
|
+
name: "Meeple",
|
|
34
|
+
fieldsSchema: {
|
|
35
|
+
properties: {
|
|
36
|
+
stamina: { type: "integer" },
|
|
37
|
+
state: { type: "enum", enums: ["ready", "spent"] },
|
|
38
|
+
linkedCard: { type: "cardId" },
|
|
39
|
+
assignedZone: { type: "zoneId" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
pieceSeeds: [
|
|
45
|
+
{
|
|
46
|
+
id: "worker-a",
|
|
47
|
+
typeId: "meeple",
|
|
48
|
+
fields: {
|
|
49
|
+
stamina: 2,
|
|
50
|
+
state: "resting",
|
|
51
|
+
linkedCard: "ace",
|
|
52
|
+
assignedZone: "draw",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
dieTypes: [],
|
|
57
|
+
dieSeeds: [],
|
|
58
|
+
resources: [],
|
|
59
|
+
setupOptions: [],
|
|
60
|
+
setupProfiles: [],
|
|
61
|
+
} as const);
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
properties: {},
|
|
16
|
+
},
|
|
17
|
+
cards: [{ type: "ace", name: "Ace", count: 1, properties: {} }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
zones: [
|
|
21
|
+
{
|
|
22
|
+
id: "draw",
|
|
23
|
+
name: "Draw",
|
|
24
|
+
scope: "shared",
|
|
25
|
+
allowedCardSetIds: ["main"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
boardTemplates: [],
|
|
29
|
+
boards: [],
|
|
30
|
+
pieceTypes: [
|
|
31
|
+
{
|
|
32
|
+
id: "meeple",
|
|
33
|
+
name: "Meeple",
|
|
34
|
+
fieldsSchema: {
|
|
35
|
+
properties: {
|
|
36
|
+
stamina: { type: "integer" },
|
|
37
|
+
state: { type: "enum", enums: ["ready", "spent"] },
|
|
38
|
+
linkedCard: { type: "cardId" },
|
|
39
|
+
assignedZone: { type: "zoneId" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
pieceSeeds: [
|
|
45
|
+
{
|
|
46
|
+
id: "worker-a",
|
|
47
|
+
typeId: "meeple",
|
|
48
|
+
fields: {
|
|
49
|
+
stamina: "high",
|
|
50
|
+
state: "ready",
|
|
51
|
+
linkedCard: "ace",
|
|
52
|
+
assignedZone: "draw",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
dieTypes: [],
|
|
57
|
+
dieSeeds: [],
|
|
58
|
+
resources: [],
|
|
59
|
+
setupOptions: [],
|
|
60
|
+
setupProfiles: [],
|
|
61
|
+
} as const);
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
properties: {},
|
|
16
|
+
},
|
|
17
|
+
cards: [{ type: "ace", name: "Ace", count: 1, properties: {} }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
zones: [
|
|
21
|
+
{
|
|
22
|
+
id: "draw",
|
|
23
|
+
name: "Draw",
|
|
24
|
+
scope: "shared",
|
|
25
|
+
allowedCardSetIds: ["main"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
boardTemplates: [],
|
|
29
|
+
boards: [],
|
|
30
|
+
pieceTypes: [
|
|
31
|
+
{
|
|
32
|
+
id: "meeple",
|
|
33
|
+
name: "Meeple",
|
|
34
|
+
fieldsSchema: {
|
|
35
|
+
properties: {
|
|
36
|
+
stamina: { type: "integer" },
|
|
37
|
+
state: { type: "enum", enums: ["ready", "spent"] },
|
|
38
|
+
linkedCard: { type: "cardId" },
|
|
39
|
+
assignedZone: { type: "zoneId" },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
pieceSeeds: [
|
|
45
|
+
{
|
|
46
|
+
id: "worker-a",
|
|
47
|
+
typeId: "meeple",
|
|
48
|
+
fields: {
|
|
49
|
+
stamina: 2,
|
|
50
|
+
state: "ready",
|
|
51
|
+
linkedCard: "ace",
|
|
52
|
+
assignedZone: "discard",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
dieTypes: [],
|
|
57
|
+
dieSeeds: [],
|
|
58
|
+
resources: [],
|
|
59
|
+
setupOptions: [],
|
|
60
|
+
setupProfiles: [],
|
|
61
|
+
} as const);
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
boards: [
|
|
13
|
+
{
|
|
14
|
+
id: "player-grid",
|
|
15
|
+
name: "Player Grid",
|
|
16
|
+
layout: "square",
|
|
17
|
+
scope: "perPlayer",
|
|
18
|
+
spaces: [{ id: "cell-a", row: 0, col: 0 }],
|
|
19
|
+
relations: [],
|
|
20
|
+
containers: [
|
|
21
|
+
{
|
|
22
|
+
id: "cache",
|
|
23
|
+
name: "Cache",
|
|
24
|
+
host: { type: "space", spaceId: "cell-a" },
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
edges: [],
|
|
28
|
+
vertices: [],
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
pieceTypes: [{ id: "meeple", name: "Meeple" }],
|
|
32
|
+
pieceSeeds: [
|
|
33
|
+
{
|
|
34
|
+
id: "worker-a",
|
|
35
|
+
typeId: "meeple",
|
|
36
|
+
home: {
|
|
37
|
+
type: "container",
|
|
38
|
+
boardId: "player-grid",
|
|
39
|
+
containerId: "cache",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
dieTypes: [],
|
|
44
|
+
dieSeeds: [],
|
|
45
|
+
resources: [],
|
|
46
|
+
setupOptions: [],
|
|
47
|
+
setupProfiles: [],
|
|
48
|
+
} as const);
|