@bitmagic/asset-core 0.2.26-dev.2 → 0.2.26-dev.3

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.
@@ -13,9 +13,9 @@
13
13
  * (`assets add`, `generate model|prop|character`), the judge's fallback art direction, the
14
14
  * engine's lighting/bloom presets, and the web agent's `generate-character` and
15
15
  * `generate-glb-asset` tools. The web lane WRITES it at creation: the Creator's template picker
16
- * and the planner (`PromptToGameController`) stamp it into game.json. What does NOT read it: the
17
- * World-Forger, which still bakes a voxel level, so the web agent has no way to author a low-poly
18
- * level.
16
+ * and the planner (`PromptToGameController`) stamp it into game.json. The World-Forger reads it
17
+ * too (frozen as `ForgeJobInput.artStyle`): a low-poly forge keeps its level as meshes — a
18
+ * declared mesh level plus GLB objects — and refuses cities, dungeons, ships and interiors.
19
19
  *
20
20
  * Published as the `@bitmagic/asset-core/art-style` subpath so browser consumers can read
21
21
  * the enum without the root barrel's generators. No network, no node APIs.
package/dist/art-style.js CHANGED
@@ -13,9 +13,9 @@
13
13
  * (`assets add`, `generate model|prop|character`), the judge's fallback art direction, the
14
14
  * engine's lighting/bloom presets, and the web agent's `generate-character` and
15
15
  * `generate-glb-asset` tools. The web lane WRITES it at creation: the Creator's template picker
16
- * and the planner (`PromptToGameController`) stamp it into game.json. What does NOT read it: the
17
- * World-Forger, which still bakes a voxel level, so the web agent has no way to author a low-poly
18
- * level.
16
+ * and the planner (`PromptToGameController`) stamp it into game.json. The World-Forger reads it
17
+ * too (frozen as `ForgeJobInput.artStyle`): a low-poly forge keeps its level as meshes — a
18
+ * declared mesh level plus GLB objects — and refuses cities, dungeons, ships and interiors.
19
19
  *
20
20
  * Published as the `@bitmagic/asset-core/art-style` subpath so browser consumers can read
21
21
  * the enum without the root barrel's generators. No network, no node APIs.
@@ -0,0 +1,3 @@
1
+ /** Shared GTM bootstrap for published games in both the Creator and CLI lanes. */
2
+ export declare const PUBLISH_ANALYTICS_HEAD = "<!-- Google Tag Manager -->\n<script>\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n version: \"3.0\",\n });\n (function (w, d, s, l, i) {\n w[l] = w[l] || [];\n w[l].push({ \"gtm.start\": new Date().getTime(), event: \"gtm.js\" });\n var f = d.getElementsByTagName(s)[0],\n j = d.createElement(s),\n dl = l != \"dataLayer\" ? \"&l=\" + l : \"\";\n j.async = true;\n j.src = \"https://www.googletagmanager.com/gtm.js?id=\" + i + dl;\n f.parentNode.insertBefore(j, f);\n })(window, document, \"script\", \"dataLayer\", \"GTM-W52M6DL2\");\n</script>\n<!-- End Google Tag Manager -->";
3
+ //# sourceMappingURL=publish-analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-analytics.d.ts","sourceRoot":"","sources":["../src/publish-analytics.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,yrBAiBH,CAAC"}
@@ -0,0 +1,20 @@
1
+ /** Shared GTM bootstrap for published games in both the Creator and CLI lanes. */
2
+ export const PUBLISH_ANALYTICS_HEAD = `<!-- Google Tag Manager -->
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ window.dataLayer.push({
6
+ version: "3.0",
7
+ });
8
+ (function (w, d, s, l, i) {
9
+ w[l] = w[l] || [];
10
+ w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
11
+ var f = d.getElementsByTagName(s)[0],
12
+ j = d.createElement(s),
13
+ dl = l != "dataLayer" ? "&l=" + l : "";
14
+ j.async = true;
15
+ j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
16
+ f.parentNode.insertBefore(j, f);
17
+ })(window, document, "script", "dataLayer", "GTM-W52M6DL2");
18
+ </script>
19
+ <!-- End Google Tag Manager -->`;
20
+ //# sourceMappingURL=publish-analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-analytics.js","sourceRoot":"","sources":["../src/publish-analytics.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;gCAiBN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmagic/asset-core",
3
- "version": "0.2.26-dev.2",
3
+ "version": "0.2.26-dev.3",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "author": "Bitmagic Oy",
6
6
  "type": "module",
@@ -27,6 +27,10 @@
27
27
  "types": "./dist/publish-source.d.ts",
28
28
  "default": "./dist/publish-source.js"
29
29
  },
30
+ "./publish-analytics": {
31
+ "types": "./dist/publish-analytics.d.ts",
32
+ "default": "./dist/publish-analytics.js"
33
+ },
30
34
  "./art-style": {
31
35
  "types": "./dist/art-style.d.ts",
32
36
  "default": "./dist/art-style.js"