@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.
Files changed (73) hide show
  1. package/LICENSE +89 -0
  2. package/NOTICE +1 -0
  3. package/dist/hex-geometry.d.ts +2 -0
  4. package/dist/hex-geometry.js +49 -0
  5. package/dist/index.d.ts +13 -0
  6. package/dist/index.js +22 -0
  7. package/dist/manifest-contract.d.ts +14 -0
  8. package/dist/manifest-contract.js +4897 -0
  9. package/dist/manifest-validation.d.ts +6 -0
  10. package/dist/manifest-validation.js +506 -0
  11. package/dist/ownership.d.ts +31 -0
  12. package/dist/ownership.js +86 -0
  13. package/dist/preset-card-sets.d.ts +5 -0
  14. package/dist/preset-card-sets.js +135 -0
  15. package/dist/seeds.d.ts +6 -0
  16. package/dist/seeds.js +766 -0
  17. package/ownership.json +51 -0
  18. package/package.json +46 -0
  19. package/src/__fixtures__/sdk-types/invalid-card-properties-extra-key.ts +62 -0
  20. package/src/__fixtures__/sdk-types/invalid-card-properties-missing-required.ts +60 -0
  21. package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-enum.ts +61 -0
  22. package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-nested.ts +61 -0
  23. package/src/__fixtures__/sdk-types/invalid-card-properties-wrong-scalar.ts +61 -0
  24. package/src/__fixtures__/sdk-types/invalid-card-visibility.ts +40 -0
  25. package/src/__fixtures__/sdk-types/invalid-container-card-set-manifest.ts +62 -0
  26. package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-array-item.ts +43 -0
  27. package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-player-id.ts +43 -0
  28. package/src/__fixtures__/sdk-types/invalid-die-fields-wrong-resource-id.ts +43 -0
  29. package/src/__fixtures__/sdk-types/invalid-die-home-per-player-zone-no-owner.ts +35 -0
  30. package/src/__fixtures__/sdk-types/invalid-die-seed-type-id.ts +31 -0
  31. package/src/__fixtures__/sdk-types/invalid-die-visibility.ts +28 -0
  32. package/src/__fixtures__/sdk-types/invalid-generic-board-edge-id.ts +38 -0
  33. package/src/__fixtures__/sdk-types/invalid-generic-board-nested-field.ts +45 -0
  34. package/src/__fixtures__/sdk-types/invalid-hex-edge-field-edge-id.ts +47 -0
  35. package/src/__fixtures__/sdk-types/invalid-hex-vertex-field-vertex-id.ts +47 -0
  36. package/src/__fixtures__/sdk-types/invalid-manifest.ts +143 -0
  37. package/src/__fixtures__/sdk-types/invalid-piece-fields-extra-key.ts +62 -0
  38. package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-card-id.ts +61 -0
  39. package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-enum.ts +61 -0
  40. package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-scalar.ts +61 -0
  41. package/src/__fixtures__/sdk-types/invalid-piece-fields-wrong-zone-id.ts +61 -0
  42. package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-container-no-owner.ts +48 -0
  43. package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-edge-no-owner.ts +47 -0
  44. package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-space-no-owner.ts +42 -0
  45. package/src/__fixtures__/sdk-types/invalid-piece-home-per-player-vertex-no-owner.ts +49 -0
  46. package/src/__fixtures__/sdk-types/invalid-piece-seed-type-id.ts +30 -0
  47. package/src/__fixtures__/sdk-types/invalid-piece-visibility.ts +28 -0
  48. package/src/__fixtures__/sdk-types/invalid-slot-host-manifest.ts +47 -0
  49. package/src/__fixtures__/sdk-types/invalid-slot-id-manifest.ts +49 -0
  50. package/src/__fixtures__/sdk-types/invalid-square-board-edge-id.ts +47 -0
  51. package/src/__fixtures__/sdk-types/invalid-square-board-space-id.ts +47 -0
  52. package/src/__fixtures__/sdk-types/invalid-square-board-vertex-id.ts +49 -0
  53. package/src/__fixtures__/sdk-types/invalid-square-container-field-space-id.ts +59 -0
  54. package/src/__fixtures__/sdk-types/invalid-square-container-host-space-id.ts +49 -0
  55. package/src/__fixtures__/sdk-types/invalid-square-relation-field-scalar.ts +48 -0
  56. package/src/__fixtures__/sdk-types/invalid-square-relation-space-id.ts +48 -0
  57. package/src/__fixtures__/sdk-types/invalid-square-space-fields-enum.ts +44 -0
  58. package/src/__fixtures__/sdk-types/invalid-square-space-fields-extra-key.ts +45 -0
  59. package/src/__fixtures__/sdk-types/valid-die-type-omits-sides.ts +29 -0
  60. package/src/__fixtures__/sdk-types/valid-manifest-omits-board-templates.ts +19 -0
  61. package/src/__fixtures__/sdk-types/valid-manifest.ts +612 -0
  62. package/src/__fixtures__/sdk-types/valid-player-scoped-seed-homes.ts +59 -0
  63. package/src/authoring-benchmark.test.ts +362 -0
  64. package/src/hex-geometry.ts +69 -0
  65. package/src/index.ts +64 -0
  66. package/src/manifest-contract.test.ts +1764 -0
  67. package/src/manifest-contract.ts +6581 -0
  68. package/src/manifest-validation.test.ts +393 -0
  69. package/src/manifest-validation.ts +795 -0
  70. package/src/ownership.ts +127 -0
  71. package/src/preset-card-sets.ts +169 -0
  72. package/src/sdk-types-authoring.test.ts +361 -0
  73. package/src/seeds.ts +800 -0
package/ownership.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "version": 22,
3
+ "allowedPaths": {
4
+ "rootFiles": [
5
+ ".npmrc",
6
+ "package.json",
7
+ "pnpm-lock.yaml",
8
+ "package-lock.json",
9
+ "manifest.ts",
10
+ "manifest.tsconfig.json",
11
+ "rule.md"
12
+ ],
13
+ "directoryPrefixes": ["app/", "ui/", "shared/", "test/"]
14
+ },
15
+ "dynamic": {
16
+ "generatedFiles": [
17
+ "shared/manifest-contract.ts",
18
+ "shared/generated/ui-contract.ts",
19
+ "app/index.ts",
20
+ "app/tsconfig.framework.json",
21
+ "ui/tsconfig.framework.json"
22
+ ],
23
+ "seedFiles": [
24
+ "ui/App.tsx",
25
+ "app/game-contract.ts",
26
+ "app/game.ts",
27
+ "app/setup-profiles.ts",
28
+ "app/reducer-support.ts",
29
+ "app/derived.ts"
30
+ ],
31
+ "seedFilePatterns": [
32
+ {
33
+ "prefix": "app/phases/",
34
+ "suffix": ".ts"
35
+ }
36
+ ]
37
+ },
38
+ "cliStatic": {
39
+ "exactFiles": [
40
+ ".npmrc",
41
+ "package.json",
42
+ "app/tsconfig.json",
43
+ "ui/index.tsx",
44
+ "ui/package.json",
45
+ "ui/style.css",
46
+ "ui/tsconfig.json"
47
+ ],
48
+ "directoryPrefixes": []
49
+ },
50
+ "preservedUserFiles": []
51
+ }
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@dreamboard-games/workspace-codegen",
3
+ "version": "0.1.0",
4
+ "description": "Internal Dreamboard workspace source generator",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "bun": "./src/index.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "build": "tsc --project tsconfig.json",
18
+ "lint": "eslint 'src/**/*.ts'",
19
+ "test": "bun test --timeout 30000",
20
+ "test:unit": "bun test --timeout 30000"
21
+ },
22
+ "dependencies": {
23
+ "@dreamboard/sdk-types": "npm:@dreamboard-games/sdk-types@0.1.0",
24
+ "@dreamboard/ui-sdk": "npm:@dreamboard-games/ui-sdk@0.0.41"
25
+ },
26
+ "license": "SEE LICENSE IN LICENSE",
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/dreamboard-games/dreamboard.git"
33
+ },
34
+ "homepage": "http://dreamboard.games/",
35
+ "bugs": {
36
+ "url": "https://github.com/dreamboard-games/dreamboard/issues"
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "src",
41
+ "ownership.json",
42
+ "README.md",
43
+ "LICENSE",
44
+ "NOTICE"
45
+ ]
46
+ }
@@ -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
+ value: { type: "integer" },
17
+ suit: { type: "enum", enums: ["sun", "moon"] },
18
+ tags: { type: "array", items: { type: "string" } },
19
+ metadata: {
20
+ type: "object",
21
+ properties: {
22
+ label: { type: "string" },
23
+ scoreByPlayer: {
24
+ type: "record",
25
+ values: { type: "integer" },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ cards: [
32
+ {
33
+ type: "ace",
34
+ name: "Ace",
35
+ count: 1,
36
+ properties: {
37
+ value: 1,
38
+ suit: "sun",
39
+ tags: ["starter"],
40
+ metadata: {
41
+ label: "Ace",
42
+ scoreByPlayer: {
43
+ "player-1": 1,
44
+ },
45
+ },
46
+ unexpected: true,
47
+ },
48
+ },
49
+ ],
50
+ },
51
+ ],
52
+ zones: [],
53
+ boardTemplates: [],
54
+ boards: [],
55
+ pieceTypes: [],
56
+ pieceSeeds: [],
57
+ dieTypes: [],
58
+ dieSeeds: [],
59
+ resources: [],
60
+ setupOptions: [],
61
+ setupProfiles: [],
62
+ } as const);
@@ -0,0 +1,60 @@
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
+ value: { type: "integer" },
17
+ suit: { type: "enum", enums: ["sun", "moon"] },
18
+ tags: { type: "array", items: { type: "string" } },
19
+ metadata: {
20
+ type: "object",
21
+ properties: {
22
+ label: { type: "string" },
23
+ scoreByPlayer: {
24
+ type: "record",
25
+ values: { type: "integer" },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ cards: [
32
+ {
33
+ type: "ace",
34
+ name: "Ace",
35
+ count: 1,
36
+ properties: {
37
+ suit: "sun",
38
+ tags: ["starter"],
39
+ metadata: {
40
+ label: "Ace",
41
+ scoreByPlayer: {
42
+ "player-1": 1,
43
+ },
44
+ },
45
+ },
46
+ },
47
+ ],
48
+ },
49
+ ],
50
+ zones: [],
51
+ boardTemplates: [],
52
+ boards: [],
53
+ pieceTypes: [],
54
+ pieceSeeds: [],
55
+ dieTypes: [],
56
+ dieSeeds: [],
57
+ resources: [],
58
+ setupOptions: [],
59
+ setupProfiles: [],
60
+ } 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
+ value: { type: "integer" },
17
+ suit: { type: "enum", enums: ["sun", "moon"] },
18
+ tags: { type: "array", items: { type: "string" } },
19
+ metadata: {
20
+ type: "object",
21
+ properties: {
22
+ label: { type: "string" },
23
+ scoreByPlayer: {
24
+ type: "record",
25
+ values: { type: "integer" },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ cards: [
32
+ {
33
+ type: "ace",
34
+ name: "Ace",
35
+ count: 1,
36
+ properties: {
37
+ value: 1,
38
+ suit: "stars",
39
+ tags: ["starter"],
40
+ metadata: {
41
+ label: "Ace",
42
+ scoreByPlayer: {
43
+ "player-1": 1,
44
+ },
45
+ },
46
+ },
47
+ },
48
+ ],
49
+ },
50
+ ],
51
+ zones: [],
52
+ boardTemplates: [],
53
+ boards: [],
54
+ pieceTypes: [],
55
+ pieceSeeds: [],
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
+ value: { type: "integer" },
17
+ suit: { type: "enum", enums: ["sun", "moon"] },
18
+ tags: { type: "array", items: { type: "string" } },
19
+ metadata: {
20
+ type: "object",
21
+ properties: {
22
+ label: { type: "string" },
23
+ scoreByPlayer: {
24
+ type: "record",
25
+ values: { type: "integer" },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ cards: [
32
+ {
33
+ type: "ace",
34
+ name: "Ace",
35
+ count: 1,
36
+ properties: {
37
+ value: 1,
38
+ suit: "sun",
39
+ tags: ["starter"],
40
+ metadata: {
41
+ label: 99,
42
+ scoreByPlayer: {
43
+ "player-1": 1,
44
+ },
45
+ },
46
+ },
47
+ },
48
+ ],
49
+ },
50
+ ],
51
+ zones: [],
52
+ boardTemplates: [],
53
+ boards: [],
54
+ pieceTypes: [],
55
+ pieceSeeds: [],
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
+ value: { type: "integer" },
17
+ suit: { type: "enum", enums: ["sun", "moon"] },
18
+ tags: { type: "array", items: { type: "string" } },
19
+ metadata: {
20
+ type: "object",
21
+ properties: {
22
+ label: { type: "string" },
23
+ scoreByPlayer: {
24
+ type: "record",
25
+ values: { type: "integer" },
26
+ },
27
+ },
28
+ },
29
+ },
30
+ },
31
+ cards: [
32
+ {
33
+ type: "ace",
34
+ name: "Ace",
35
+ count: 1,
36
+ properties: {
37
+ value: "one",
38
+ suit: "sun",
39
+ tags: ["starter"],
40
+ metadata: {
41
+ label: "Ace",
42
+ scoreByPlayer: {
43
+ "player-1": 1,
44
+ },
45
+ },
46
+ },
47
+ },
48
+ ],
49
+ },
50
+ ],
51
+ zones: [],
52
+ boardTemplates: [],
53
+ boards: [],
54
+ pieceTypes: [],
55
+ pieceSeeds: [],
56
+ dieTypes: [],
57
+ dieSeeds: [],
58
+ resources: [],
59
+ setupOptions: [],
60
+ setupProfiles: [],
61
+ } as const);
@@ -0,0 +1,40 @@
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: [
18
+ {
19
+ type: "ace",
20
+ name: "Ace",
21
+ count: 1,
22
+ properties: {},
23
+ visibility: {
24
+ visibleTo: ["player-3"],
25
+ },
26
+ },
27
+ ],
28
+ },
29
+ ],
30
+ zones: [],
31
+ boardTemplates: [],
32
+ boards: [],
33
+ pieceTypes: [],
34
+ pieceSeeds: [],
35
+ dieTypes: [],
36
+ dieSeeds: [],
37
+ resources: [],
38
+ setupOptions: [],
39
+ setupProfiles: [],
40
+ } 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: [],
18
+ },
19
+ ],
20
+ zones: [],
21
+ boardTemplates: [
22
+ {
23
+ id: "template",
24
+ name: "Template",
25
+ layout: "square",
26
+ spaces: [{ id: "space-a", row: 0, col: 0 }],
27
+ containers: [
28
+ {
29
+ id: "supply",
30
+ name: "Supply",
31
+ host: { type: "board" },
32
+ allowedCardSetIds: ["missing-card-set"],
33
+ },
34
+ ],
35
+ },
36
+ ],
37
+ boards: [
38
+ {
39
+ id: "board",
40
+ name: "Board",
41
+ layout: "square",
42
+ scope: "shared",
43
+ templateId: "template",
44
+ spaces: [{ id: "space-a", row: 0, col: 0 }],
45
+ containers: [
46
+ {
47
+ id: "supply",
48
+ name: "Supply",
49
+ host: { type: "board" },
50
+ allowedCardSetIds: ["main", "missing-card-set"],
51
+ },
52
+ ],
53
+ },
54
+ ],
55
+ pieceTypes: [],
56
+ pieceSeeds: [],
57
+ dieTypes: [],
58
+ dieSeeds: [],
59
+ resources: [],
60
+ setupOptions: [],
61
+ setupProfiles: [],
62
+ } as const);
@@ -0,0 +1,43 @@
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: [
16
+ {
17
+ id: "d6",
18
+ name: "D6",
19
+ sides: 6,
20
+ fieldsSchema: {
21
+ properties: {
22
+ owner: { type: "playerId" },
23
+ resource: { type: "resourceId" },
24
+ history: { type: "array", items: { type: "integer" } },
25
+ },
26
+ },
27
+ },
28
+ ],
29
+ dieSeeds: [
30
+ {
31
+ id: "die-a",
32
+ typeId: "d6",
33
+ fields: {
34
+ owner: "player-1",
35
+ resource: "supply",
36
+ history: ["six"],
37
+ },
38
+ },
39
+ ],
40
+ resources: [{ id: "supply", name: "Supply" }],
41
+ setupOptions: [],
42
+ setupProfiles: [],
43
+ } as const);
@@ -0,0 +1,43 @@
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: [
16
+ {
17
+ id: "d6",
18
+ name: "D6",
19
+ sides: 6,
20
+ fieldsSchema: {
21
+ properties: {
22
+ owner: { type: "playerId" },
23
+ resource: { type: "resourceId" },
24
+ history: { type: "array", items: { type: "integer" } },
25
+ },
26
+ },
27
+ },
28
+ ],
29
+ dieSeeds: [
30
+ {
31
+ id: "die-a",
32
+ typeId: "d6",
33
+ fields: {
34
+ owner: "player-3",
35
+ resource: "supply",
36
+ history: [1, 2],
37
+ },
38
+ },
39
+ ],
40
+ resources: [{ id: "supply", name: "Supply" }],
41
+ setupOptions: [],
42
+ setupProfiles: [],
43
+ } as const);
@@ -0,0 +1,43 @@
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: [
16
+ {
17
+ id: "d6",
18
+ name: "D6",
19
+ sides: 6,
20
+ fieldsSchema: {
21
+ properties: {
22
+ owner: { type: "playerId" },
23
+ resource: { type: "resourceId" },
24
+ history: { type: "array", items: { type: "integer" } },
25
+ },
26
+ },
27
+ },
28
+ ],
29
+ dieSeeds: [
30
+ {
31
+ id: "die-a",
32
+ typeId: "d6",
33
+ fields: {
34
+ owner: "player-1",
35
+ resource: "missing-resource",
36
+ history: [1, 2],
37
+ },
38
+ },
39
+ ],
40
+ resources: [{ id: "supply", name: "Supply" }],
41
+ setupOptions: [],
42
+ setupProfiles: [],
43
+ } as const);
@@ -0,0 +1,35 @@
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
+ {
12
+ id: "main-hand",
13
+ name: "Main Hand",
14
+ scope: "perPlayer",
15
+ },
16
+ ],
17
+ boardTemplates: [],
18
+ boards: [],
19
+ pieceTypes: [],
20
+ pieceSeeds: [],
21
+ dieTypes: [{ id: "d6", name: "D6", sides: 6 }],
22
+ dieSeeds: [
23
+ {
24
+ id: "die-a",
25
+ typeId: "d6",
26
+ home: {
27
+ type: "zone",
28
+ zoneId: "main-hand",
29
+ },
30
+ },
31
+ ],
32
+ resources: [],
33
+ setupOptions: [],
34
+ setupProfiles: [],
35
+ } as const);
@@ -0,0 +1,31 @@
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: [
16
+ {
17
+ id: "d6",
18
+ name: "D6",
19
+ sides: 6,
20
+ },
21
+ ],
22
+ dieSeeds: [
23
+ {
24
+ id: "die-a",
25
+ typeId: "missing-d6",
26
+ },
27
+ ],
28
+ resources: [],
29
+ setupOptions: [],
30
+ setupProfiles: [],
31
+ } as const);