@holoscript/core 6.0.3 → 6.0.4
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/README.md +38 -38
- package/dist/GLTFPipeline-DEN36VNK.js +12 -0
- package/dist/GLTFPipeline-YPCAK236.cjs +33 -0
- package/dist/{HoloScriptPlusParser-BZR5DELQ.js → HoloScriptPlusParser-BN6KVRCM.js} +5 -5
- package/dist/{HoloScriptPlusParser-SBMYDNXO.cjs → HoloScriptPlusParser-NC5FE6AL.cjs} +16 -16
- package/dist/{USDZExporter-YA55ZS35.js → USDZExporter-NTMBNTDB.js} +3 -3
- package/dist/{USDZExporter-MHEHXZB4.cjs → USDZExporter-UWGWNMMD.cjs} +3 -3
- package/dist/{chunk-32TWR3HE.js → chunk-2CWOLHTE.js} +3 -4
- package/dist/{chunk-2UX5LRAP.cjs → chunk-33LSUQDD.cjs} +33 -31
- package/dist/{chunk-LBPEZQAF.js → chunk-3FJCK5XA.js} +7 -7
- package/dist/{chunk-EGIZHYJP.cjs → chunk-3SAK5KFL.cjs} +2 -4
- package/dist/{chunk-PJMOXFPR.cjs → chunk-4XSNJCLC.cjs} +25 -27
- package/dist/{chunk-HKCVM6OK.cjs → chunk-5BGSECRJ.cjs} +21 -21
- package/dist/{chunk-EMO7HAKJ.cjs → chunk-5O6TQC6M.cjs} +26 -30
- package/dist/{chunk-XSUZMPVQ.cjs → chunk-5OEOHAAW.cjs} +26 -26
- package/dist/{chunk-EJA7G2C4.cjs → chunk-5WUNN6ZN.cjs} +2 -2
- package/dist/{chunk-CQDOF3G7.cjs → chunk-6TZPZCOJ.cjs} +18 -18
- package/dist/{chunk-NRUB55IT.cjs → chunk-6UEHYZ7V.cjs} +18 -16
- package/dist/{chunk-V42NTCFH.js → chunk-6XSERL6L.js} +4230 -2197
- package/dist/{chunk-X4YVN7H3.cjs → chunk-72EQECGT.cjs} +37 -17
- package/dist/{chunk-4KJ2R7VP.cjs → chunk-7AGYRWKW.cjs} +19 -19
- package/dist/{chunk-UQW6SLM5.js → chunk-A7PIMZGU.js} +110 -19
- package/dist/{chunk-RT7LJRSF.cjs → chunk-ATSKSYVE.cjs} +1013 -6708
- package/dist/{chunk-WN3YF33G.cjs → chunk-B5TCIAPQ.cjs} +9 -10
- package/dist/{chunk-AIUXRS74.cjs → chunk-BF2235SI.cjs} +4275 -2242
- package/dist/{chunk-DIEDKX5B.cjs → chunk-BND3ST2K.cjs} +18 -16
- package/dist/{chunk-EPWRXL6S.js → chunk-BU7VWW2K.js} +29 -29
- package/dist/{chunk-6OQBLABR.js → chunk-BWFJEM5A.js} +368 -189
- package/dist/{chunk-ARNKA274.cjs → chunk-CAUCGUEA.cjs} +6 -6
- package/dist/{chunk-YCMQQQ5U.cjs → chunk-CBJSLA2E.cjs} +398 -219
- package/dist/{chunk-BU5ZAFMC.js → chunk-CDPGV4DN.js} +6 -7
- package/dist/{chunk-CO2VM2DK.js → chunk-CS2EMTGF.js} +10 -9
- package/dist/{chunk-AW7WAELW.js → chunk-DMG7C4H2.js} +4 -4
- package/dist/{chunk-XSF76QRU.js → chunk-DXJQDCFL.js} +3 -3
- package/dist/{chunk-4FCZDTD5.js → chunk-E3FWRT3Z.js} +7 -9
- package/dist/{chunk-KYM4XRFG.js → chunk-E3UALNFA.js} +4 -4
- package/dist/{chunk-GC3YU46J.js → chunk-EONILVMF.js} +2 -2
- package/dist/{chunk-VJVCD5T5.cjs → chunk-EQV4R3EV.cjs} +22 -22
- package/dist/{chunk-FEFHPUEM.cjs → chunk-F3HH56EB.cjs} +74 -658
- package/dist/{chunk-WYH4GVZ5.js → chunk-F4IULT7N.js} +2 -2
- package/dist/{chunk-XDXZM3ZP.cjs → chunk-FFKU7BTK.cjs} +19 -19
- package/dist/{chunk-NKRKT6V2.js → chunk-FHQVYCH2.js} +11 -10
- package/dist/{chunk-7H5UNJZD.cjs → chunk-FSF7EQVA.cjs} +11 -10
- package/dist/{chunk-KUJRR4FJ.js → chunk-G4VZTCIB.js} +9 -7
- package/dist/{chunk-A6GO3DPZ.cjs → chunk-G7CT3EMP.cjs} +4 -4
- package/dist/{chunk-EUFLX2PI.js → chunk-GGHSW2NN.js} +989 -6611
- package/dist/chunk-GVUR45UF.cjs +777 -0
- package/dist/{chunk-ODGMVILH.js → chunk-H5Z7NASB.js} +3 -3
- package/dist/{chunk-7KPI4EKH.cjs → chunk-HE7ULERA.cjs} +45 -49
- package/dist/{chunk-26TLYBFD.js → chunk-HPS76H7Q.js} +3 -3
- package/dist/{chunk-RE3OKSYF.cjs → chunk-HQUEA5R6.cjs} +6 -6
- package/dist/{chunk-ZGTGVSTZ.js → chunk-HYNTS5CP.js} +2 -2
- package/dist/{chunk-PBA6NXCT.cjs → chunk-IBDG74G2.cjs} +6 -3
- package/dist/chunk-IFNQFCTM.js +3098 -0
- package/dist/{chunk-ZL6VJ6SN.js → chunk-IWI6J7FX.js} +5 -5
- package/dist/{chunk-3KEU5QYY.cjs → chunk-K3JDKWGI.cjs} +118 -23
- package/dist/{chunk-NLPSZT4C.js → chunk-K6EKD26I.js} +6 -6
- package/dist/chunk-KCQ5NDYC.cjs +3172 -0
- package/dist/{chunk-ELLQPFAF.js → chunk-KED34ILP.js} +11 -9
- package/dist/{chunk-BY3B7ZYV.cjs → chunk-KSGXLT74.cjs} +3 -3
- package/dist/{chunk-65RFOWZI.js → chunk-L4G4RLXX.js} +9 -7
- package/dist/{chunk-4SMUJFHL.js → chunk-LDP5OK6G.js} +6 -3
- package/dist/{chunk-VZNKJZTT.cjs → chunk-LGGRPKTV.cjs} +82 -96
- package/dist/{chunk-C2QHVHZF.js → chunk-LSW7P7ML.js} +23 -414
- package/dist/{chunk-HHS6FMOU.cjs → chunk-LXJ4667L.cjs} +83 -22
- package/dist/{chunk-H6WMMLQK.cjs → chunk-LZ266PCM.cjs} +20 -13
- package/dist/{chunk-V2ILLPHK.cjs → chunk-MD6KDHVE.cjs} +10 -10
- package/dist/{chunk-6WNCRE6F.js → chunk-MEASWI2Y.js} +5 -5
- package/dist/chunk-MPXBVFHQ.js +768 -0
- package/dist/{chunk-WUXIRGZP.cjs → chunk-NCUKG4SK.cjs} +304 -144
- package/dist/chunk-NDQNIJEH.js +1715 -0
- package/dist/{chunk-Y5MUAYTO.js → chunk-NOZZ46QU.js} +9 -8
- package/dist/{chunk-F5LVGHNT.js → chunk-OFKWH2IP.js} +3 -3
- package/dist/{chunk-SPDELRRV.cjs → chunk-PMGODDJA.cjs} +12 -12
- package/dist/{chunk-I3XGTIHM.cjs → chunk-Q4QX3AET.cjs} +2 -2
- package/dist/{chunk-Y7VK5TH3.cjs → chunk-Q5JT3YML.cjs} +10 -10
- package/dist/{chunk-TSWTWZ42.cjs → chunk-Q5SJOGHQ.cjs} +247 -205
- package/dist/{chunk-M6FU6S22.js → chunk-QGKNANZ3.js} +251 -91
- package/dist/{chunk-WFJIDI2N.cjs → chunk-QLEAOI3Q.cjs} +10 -10
- package/dist/{chunk-VK5AXKO3.js → chunk-R7MA7QWV.js} +70 -84
- package/dist/{chunk-W76ETJTI.js → chunk-RVYPEYPX.js} +6 -6
- package/dist/{chunk-MWEFR6YQ.js → chunk-S2N5TNMA.js} +7 -9
- package/dist/{chunk-NCUHGRTZ.js → chunk-S565K7NK.js} +7 -7
- package/dist/{chunk-AC4BSHFV.js → chunk-SDAMZIRE.js} +5 -5
- package/dist/{chunk-HBZYCASG.js → chunk-T36DDXSF.js} +75 -33
- package/dist/{chunk-BO2OKHIY.js → chunk-T4NKMBDL.js} +30 -611
- package/dist/{chunk-7X2IEJIE.cjs → chunk-T7LEXZUZ.cjs} +29 -29
- package/dist/{chunk-HUFNKFA6.js → chunk-TEWCN33Y.js} +8 -12
- package/dist/{chunk-L3Z2HIWJ.cjs → chunk-TQSZUOW5.cjs} +2 -2
- package/dist/chunk-TSH3MSQU.cjs +129 -0
- package/dist/{chunk-PLMYCCA4.js → chunk-UERJ3YJV.js} +6 -6
- package/dist/{chunk-7N3JIJMT.js → chunk-UPJBDCVF.js} +6 -6
- package/dist/{chunk-CMYAWUX3.js → chunk-V3NN3HPP.js} +12 -5
- package/dist/{chunk-SUCBB66F.js → chunk-WB4Z63GG.js} +3 -3
- package/dist/{chunk-PPULB4GG.cjs → chunk-WDW67DZB.cjs} +68 -68
- package/dist/chunk-WGMEAYBG.js +126 -0
- package/dist/{chunk-VSXOIUCF.cjs → chunk-X4ZF6CNE.cjs} +7 -7
- package/dist/{chunk-HF4OFY25.cjs → chunk-X6SEAXAX.cjs} +29 -445
- package/dist/{chunk-C7BNX4XJ.js → chunk-XCWFGZAA.js} +6 -6
- package/dist/{chunk-CNVM7J3M.js → chunk-XD6IYDUX.js} +34 -14
- package/dist/chunk-XG23EUQX.cjs +1717 -0
- package/dist/{chunk-DN7UFU63.cjs → chunk-XRKWN5PL.cjs} +12 -11
- package/dist/{chunk-XNMEH2BI.js → chunk-XUTX5CBW.js} +3 -3
- package/dist/{chunk-PQLGZKMC.cjs → chunk-XWPNTWDN.cjs} +26 -26
- package/dist/{chunk-NTMZSDXM.cjs → chunk-XXINBTZK.cjs} +43 -43
- package/dist/{chunk-74YCHHTE.js → chunk-YCXFCXDS.js} +8 -12
- package/dist/{chunk-KDB6BUMB.js → chunk-YQK5JNFK.js} +77 -18
- package/dist/{chunk-DH5G2JUA.cjs → chunk-Z34RLXRA.cjs} +44 -46
- package/dist/{chunk-XH7SE4HH.cjs → chunk-ZP4D3CSX.cjs} +19 -19
- package/dist/cli/holoscript-runner.cjs +33 -32
- package/dist/cli/holoscript-runner.js +13 -12
- package/dist/codebase/index.cjs +1 -1
- package/dist/codebase/index.d.ts +25 -0
- package/dist/codebase/index.js +1 -1
- package/dist/compiler/agent-inference.cjs +7 -8
- package/dist/compiler/agent-inference.js +3 -4
- package/dist/compiler/android-xr.cjs +7 -8
- package/dist/compiler/android-xr.js +5 -6
- package/dist/compiler/android.cjs +8 -9
- package/dist/compiler/android.js +6 -7
- package/dist/compiler/ar.cjs +6 -7
- package/dist/compiler/ar.js +4 -5
- package/dist/compiler/babylon.cjs +8 -9
- package/dist/compiler/babylon.js +7 -8
- package/dist/compiler/coco.cjs +1 -1
- package/dist/compiler/coco.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +158 -151
- package/dist/compiler/domain-block-utils.js +4 -5
- package/dist/compiler/dtdl.cjs +7 -8
- package/dist/compiler/dtdl.js +4 -5
- package/dist/compiler/gltf-pipeline.cjs +9 -9
- package/dist/compiler/gltf-pipeline.js +2 -2
- package/dist/compiler/godot.cjs +6 -7
- package/dist/compiler/godot.js +5 -6
- package/dist/compiler/incremental.cjs +7 -8
- package/dist/compiler/incremental.js +2 -3
- package/dist/compiler/index.cjs +1934 -878
- package/dist/compiler/index.js +1904 -842
- package/dist/compiler/ios.cjs +8 -9
- package/dist/compiler/ios.js +6 -7
- package/dist/compiler/multi-layer.cjs +10 -17
- package/dist/compiler/multi-layer.js +9 -10
- package/dist/compiler/nodetoy.cjs +1 -1
- package/dist/compiler/nodetoy.js +1 -1
- package/dist/compiler/openxr.cjs +6 -7
- package/dist/compiler/openxr.js +5 -6
- package/dist/compiler/playcanvas.cjs +7 -8
- package/dist/compiler/playcanvas.js +6 -7
- package/dist/compiler/r3f.cjs +13 -14
- package/dist/compiler/r3f.js +8 -9
- package/dist/compiler/remotion.cjs +1 -1
- package/dist/compiler/remotion.js +1 -1
- package/dist/compiler/reproducibility.cjs +1 -1
- package/dist/compiler/reproducibility.js +1 -1
- package/dist/compiler/sdf.cjs +7 -8
- package/dist/compiler/sdf.js +5 -6
- package/dist/compiler/semantic-scene.cjs +7 -7
- package/dist/compiler/semantic-scene.js +2 -2
- package/dist/compiler/state.cjs +5 -6
- package/dist/compiler/state.js +3 -4
- package/dist/compiler/trait-composition.cjs +7 -8
- package/dist/compiler/trait-composition.js +3 -4
- package/dist/compiler/unity.cjs +6 -7
- package/dist/compiler/unity.js +5 -6
- package/dist/compiler/unreal.cjs +7 -8
- package/dist/compiler/unreal.js +5 -6
- package/dist/compiler/urdf.cjs +13 -14
- package/dist/compiler/urdf.js +5 -6
- package/dist/compiler/usd-physics.cjs +7 -8
- package/dist/compiler/usd-physics.js +4 -5
- package/dist/compiler/visionos.cjs +6 -7
- package/dist/compiler/visionos.js +5 -6
- package/dist/compiler/vrchat.cjs +7 -8
- package/dist/compiler/vrchat.js +5 -6
- package/dist/compiler/vrr.cjs +7 -8
- package/dist/compiler/vrr.js +5 -6
- package/dist/compiler/wasm.cjs +10 -11
- package/dist/compiler/wasm.js +5 -6
- package/dist/compiler/webgpu.cjs +6 -7
- package/dist/compiler/webgpu.js +5 -6
- package/dist/constants.d.ts +3 -0
- package/dist/debugger.cjs +7 -7
- package/dist/debugger.js +5 -5
- package/dist/entries/interop.cjs +1 -1
- package/dist/entries/interop.d.ts +9 -0
- package/dist/entries/interop.js +1 -1
- package/dist/entries/scripting.cjs +18 -17
- package/dist/entries/scripting.d.ts +7 -0
- package/dist/entries/scripting.js +8 -7
- package/dist/index.cjs +6773 -27555
- package/dist/index.d.ts +19 -0
- package/dist/index.js +5212 -26101
- package/dist/math/vec3.cjs +1 -1
- package/dist/math/vec3.js +1 -1
- package/dist/ml-dsa-PHCWUBPX.cjs +1178 -0
- package/dist/ml-dsa-WYLJHJO6.js +1178 -0
- package/dist/parser.cjs +11 -10
- package/dist/parser.js +8 -7
- package/dist/{playwright-BIZXMLD2.js → playwright-5OSAPTNH.js} +3 -3
- package/dist/{playwright-7DTEQCBD.cjs → playwright-RL6GY4F7.cjs} +1985 -1985
- package/dist/runtime.cjs +5 -5
- package/dist/runtime.js +4 -4
- package/dist/self-improvement/index.d.ts +0 -48
- package/dist/storage/index.cjs +1 -1
- package/dist/storage/index.d.ts +24 -0
- package/dist/storage/index.js +1 -1
- package/dist/tools/index.d.ts +12 -0
- package/dist/traits/index.cjs +925 -607
- package/dist/traits/index.js +137 -20
- package/dist/type-checker.cjs +4 -4
- package/dist/type-checker.js +2 -2
- package/package.json +56 -21
- package/LICENSE +0 -21
- package/dist/GLTFPipeline-3KLWWUQO.cjs +0 -34
- package/dist/GLTFPipeline-LYII2ZVQ.js +0 -13
- package/dist/chunk-CN4NOESF.cjs +0 -416
- package/dist/chunk-DXVCEFZB.js +0 -2027
- package/dist/chunk-ENV7K6XA.js +0 -282
- package/dist/chunk-H7XMORZI.js +0 -2731
- package/dist/chunk-HAN4V3PF.cjs +0 -2037
- package/dist/chunk-LER4WXW5.cjs +0 -286
- package/dist/chunk-QHVVVN47.cjs +0 -2033
- package/dist/chunk-QWKUKVRE.js +0 -2026
- package/dist/chunk-UITWA6DV.cjs +0 -2829
- package/dist/chunk-X67XRI2T.js +0 -410
- package/dist/post-quantum-JTTAAGO3.cjs +0 -6
- package/dist/post-quantum-RVPVDEPI.js +0 -4
- package/dist/wot/index.cjs +0 -29
- package/dist/wot/index.js +0 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-
|
|
2
|
-
import { init_TraitCompositor, TraitCompositor } from './chunk-
|
|
3
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-
|
|
4
|
-
import { init_CompilerBase,
|
|
5
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-A7PIMZGU.js';
|
|
2
|
+
import { init_TraitCompositor, TraitCompositor } from './chunk-DXJQDCFL.js';
|
|
3
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToBabylon, compilePostProcessingBlock, postProcessingToBabylon, compileParticleBlock, particlesToBabylon, compilePhysicsBlock, physicsToBabylon, compileMaterialBlock, materialToBabylon } from './chunk-YQK5JNFK.js';
|
|
4
|
+
import { init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
5
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
6
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
6
7
|
|
|
7
8
|
// src/compiler/BabylonCompiler.ts
|
|
8
9
|
var BabylonCompiler_exports = {};
|
|
@@ -15,7 +16,6 @@ var init_BabylonCompiler = __esm({
|
|
|
15
16
|
init_TraitCompositor();
|
|
16
17
|
init_ProvenanceSemiring();
|
|
17
18
|
init_CompilerBase();
|
|
18
|
-
init_ANSNamespace();
|
|
19
19
|
init_DomainBlockCompilerMixin();
|
|
20
20
|
SHAPE_TO_MESH = {
|
|
21
21
|
sphere: "CreateSphere",
|
|
@@ -328,7 +328,9 @@ ${layers}`;
|
|
|
328
328
|
);
|
|
329
329
|
}
|
|
330
330
|
if (parentVar) this.emit(`${v}.parent = ${parentVar};`);
|
|
331
|
-
const physicsTraits = (obj.traits || []).filter(
|
|
331
|
+
const physicsTraits = (obj.traits || []).filter(
|
|
332
|
+
(t) => t.name === "physics" || t.name === "collidable"
|
|
333
|
+
);
|
|
332
334
|
if (physicsTraits.length > 0) {
|
|
333
335
|
const semiring = new ProvenanceSemiring();
|
|
334
336
|
const applications = physicsTraits.map((t) => ({
|
|
@@ -826,5 +828,5 @@ ${layers}`;
|
|
|
826
828
|
});
|
|
827
829
|
|
|
828
830
|
export { BabylonCompiler, BabylonCompiler_exports, init_BabylonCompiler };
|
|
829
|
-
//# sourceMappingURL=chunk-
|
|
830
|
-
//# sourceMappingURL=chunk-
|
|
831
|
+
//# sourceMappingURL=chunk-KED34ILP.js.map
|
|
832
|
+
//# sourceMappingURL=chunk-KED34ILP.js.map
|
|
@@ -437,7 +437,7 @@ function uint8ArrayToBase64(data) {
|
|
|
437
437
|
return btoa(binary);
|
|
438
438
|
}
|
|
439
439
|
async function importGLTFPipeline() {
|
|
440
|
-
return import('./GLTFPipeline-
|
|
440
|
+
return import('./GLTFPipeline-YPCAK236.cjs');
|
|
441
441
|
}
|
|
442
442
|
function registerGLTFTools(server) {
|
|
443
443
|
for (const tool of GLTF_PIPELINE_TOOLS) {
|
|
@@ -453,5 +453,5 @@ exports.handleGLTFToolCall = handleGLTFToolCall;
|
|
|
453
453
|
exports.inspectComposition = inspectComposition;
|
|
454
454
|
exports.registerGLTFTools = registerGLTFTools;
|
|
455
455
|
exports.validateForGLTF = validateForGLTF;
|
|
456
|
-
//# sourceMappingURL=chunk-
|
|
457
|
-
//# sourceMappingURL=chunk-
|
|
456
|
+
//# sourceMappingURL=chunk-KSGXLT74.cjs.map
|
|
457
|
+
//# sourceMappingURL=chunk-KSGXLT74.cjs.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-
|
|
2
|
-
import { createTestCompilerToken, init_CompilerBase,
|
|
3
|
-
import { __export, __esm } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-YQK5JNFK.js';
|
|
2
|
+
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-6XSERL6L.js';
|
|
3
|
+
import { __export, __esm } from './chunk-2CWOLHTE.js';
|
|
4
|
+
import { ANSCapabilityPath } from '@holoscript/platform';
|
|
4
5
|
|
|
5
6
|
// src/compiler/WASMCompiler.ts
|
|
6
7
|
var WASMCompiler_exports = {};
|
|
@@ -26,7 +27,6 @@ var WASMCompiler, WASMCompiler_default;
|
|
|
26
27
|
var init_WASMCompiler = __esm({
|
|
27
28
|
"src/compiler/WASMCompiler.ts"() {
|
|
28
29
|
init_CompilerBase();
|
|
29
|
-
init_ANSNamespace();
|
|
30
30
|
init_DomainBlockCompilerMixin();
|
|
31
31
|
WASMCompiler = class extends CompilerBase {
|
|
32
32
|
constructor(options = {}) {
|
|
@@ -553,7 +553,9 @@ var init_WASMCompiler = __esm({
|
|
|
553
553
|
lines.push("export class HoloScriptWASM {");
|
|
554
554
|
lines.push(" private instance: WebAssembly.Instance | null = null;");
|
|
555
555
|
lines.push(" private memory: WebAssembly.Memory | null = null;");
|
|
556
|
-
lines.push(
|
|
556
|
+
lines.push(
|
|
557
|
+
" private eventHandlers: Map<string, Set<(payload: unknown) => void>> = new Map();"
|
|
558
|
+
);
|
|
557
559
|
lines.push("");
|
|
558
560
|
lines.push(" private static EVENT_IDS: Record<string, number> = {");
|
|
559
561
|
lines.push(" 'update': 0,");
|
|
@@ -761,5 +763,5 @@ var init_WASMCompiler = __esm({
|
|
|
761
763
|
});
|
|
762
764
|
|
|
763
765
|
export { WASMCompiler, WASMCompiler_default, WASMCompiler_exports, compileASTToWASM, compileToWASM, createWASMCompiler, init_WASMCompiler };
|
|
764
|
-
//# sourceMappingURL=chunk-
|
|
765
|
-
//# sourceMappingURL=chunk-
|
|
766
|
+
//# sourceMappingURL=chunk-L4G4RLXX.js.map
|
|
767
|
+
//# sourceMappingURL=chunk-L4G4RLXX.js.map
|
|
@@ -577,7 +577,10 @@ var HoloScriptTypeChecker = class {
|
|
|
577
577
|
}
|
|
578
578
|
const targetType = this.typeMap.get(targetStr);
|
|
579
579
|
const valueType = node.value ? this.inferType(node.value) : "unknown";
|
|
580
|
-
this.typeMap.set(
|
|
580
|
+
this.typeMap.set(
|
|
581
|
+
targetStr,
|
|
582
|
+
targetType || { type: valueType, nullable: false }
|
|
583
|
+
);
|
|
581
584
|
}
|
|
582
585
|
checkSpread(node) {
|
|
583
586
|
if (!node.target) {
|
|
@@ -1209,5 +1212,5 @@ function createTypeChecker() {
|
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
1214
|
export { HoloScriptTypeChecker, createTypeChecker };
|
|
1212
|
-
//# sourceMappingURL=chunk-
|
|
1213
|
-
//# sourceMappingURL=chunk-
|
|
1215
|
+
//# sourceMappingURL=chunk-LDP5OK6G.js.map
|
|
1216
|
+
//# sourceMappingURL=chunk-LDP5OK6G.js.map
|
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkLXJ4667L_cjs = require('./chunk-LXJ4667L.cjs');
|
|
4
|
+
var chunkBF2235SI_cjs = require('./chunk-BF2235SI.cjs');
|
|
5
|
+
var chunk3SAK5KFL_cjs = require('./chunk-3SAK5KFL.cjs');
|
|
6
|
+
var platform = require('@holoscript/platform');
|
|
6
7
|
|
|
7
8
|
// src/compiler/VRRCompiler.ts
|
|
8
9
|
var VRRCompiler_exports = {};
|
|
9
|
-
|
|
10
|
+
chunk3SAK5KFL_cjs.__export(VRRCompiler_exports, {
|
|
10
11
|
VRRCompiler: () => exports.VRRCompiler,
|
|
11
12
|
default: () => exports.VRRCompiler_default
|
|
12
13
|
});
|
|
13
14
|
var VRRTraitDefs; exports.VRRCompiler = void 0; exports.VRRCompiler_default = void 0;
|
|
14
|
-
var init_VRRCompiler =
|
|
15
|
+
var init_VRRCompiler = chunk3SAK5KFL_cjs.__esm({
|
|
15
16
|
"src/compiler/VRRCompiler.ts"() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
chunkHHS6FMOU_cjs.init_DomainBlockCompilerMixin();
|
|
17
|
+
chunkBF2235SI_cjs.init_CompilerBase();
|
|
18
|
+
chunkLXJ4667L_cjs.init_DomainBlockCompilerMixin();
|
|
19
19
|
VRRTraitDefs = {
|
|
20
20
|
vrr_twin: { validator: (p) => !!p.mirror },
|
|
21
21
|
reality_mirror: { validator: (p) => Array.isArray(p.sync) && p.sync.length > 0 },
|
|
22
22
|
geo_anchor: {
|
|
23
23
|
validator: (p) => typeof p.lat === "number" && typeof p.lng === "number" && p.lat >= -90 && p.lat <= 90 && p.lng >= -180 && p.lng <= 180
|
|
24
24
|
},
|
|
25
|
-
weather_sync: {
|
|
25
|
+
weather_sync: {
|
|
26
|
+
validator: (p) => ["weather.gov", "openweathermap"].includes(String(p.provider))
|
|
27
|
+
},
|
|
26
28
|
event_sync: { validator: (p) => ["eventbrite", "ticketmaster"].includes(String(p.provider)) },
|
|
27
|
-
inventory_sync: {
|
|
29
|
+
inventory_sync: {
|
|
30
|
+
validator: (p) => ["square_pos", "shopify", "woocommerce"].includes(String(p.provider))
|
|
31
|
+
},
|
|
28
32
|
quest_hub: { validator: (p) => Array.isArray(p.quests) && p.quests.length > 0 },
|
|
29
33
|
layer_shift: {
|
|
30
34
|
validator: (p) => {
|
|
@@ -37,7 +41,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
37
41
|
},
|
|
38
42
|
geo_sync: { validator: (p) => !!p.center && Number(p.radius || 0) >= 0 }
|
|
39
43
|
};
|
|
40
|
-
exports.VRRCompiler = class extends
|
|
44
|
+
exports.VRRCompiler = class extends chunkBF2235SI_cjs.CompilerBase {
|
|
41
45
|
constructor(options) {
|
|
42
46
|
super();
|
|
43
47
|
this.compilerName = "VRRCompiler";
|
|
@@ -47,7 +51,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
47
51
|
this.options = options;
|
|
48
52
|
}
|
|
49
53
|
getRequiredCapability() {
|
|
50
|
-
return
|
|
54
|
+
return platform.ANSCapabilityPath.VRR;
|
|
51
55
|
}
|
|
52
56
|
// ─── 1. parseVRRComposition ───────────────────────────────────────────
|
|
53
57
|
/**
|
|
@@ -84,9 +88,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
84
88
|
if (field) {
|
|
85
89
|
const traitDef = VRRTraitDefs[trait.name];
|
|
86
90
|
if (traitDef?.validator && !traitDef.validator(trait.params)) {
|
|
87
|
-
this.warnings.push(
|
|
88
|
-
`@${trait.name} on "${n.name || "unnamed"}" has invalid params`
|
|
89
|
-
);
|
|
91
|
+
this.warnings.push(`@${trait.name} on "${n.name || "unnamed"}" has invalid params`);
|
|
90
92
|
}
|
|
91
93
|
data[field].push(n);
|
|
92
94
|
}
|
|
@@ -118,21 +120,15 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
118
120
|
// === Three.js Scene Generation ===`);
|
|
119
121
|
this.generatedCode.push(`const ambientLight = new THREE.AmbientLight(0x404040, 0.6);`);
|
|
120
122
|
this.generatedCode.push(`scene.add(ambientLight);`);
|
|
121
|
-
this.generatedCode.push(
|
|
122
|
-
`const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);`
|
|
123
|
-
);
|
|
123
|
+
this.generatedCode.push(`const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);`);
|
|
124
124
|
this.generatedCode.push(`directionalLight.position.set(50, 200, 100);`);
|
|
125
125
|
this.generatedCode.push(`directionalLight.castShadow = true;`);
|
|
126
126
|
this.generatedCode.push(`scene.add(directionalLight);`);
|
|
127
|
-
this.generatedCode.push(
|
|
128
|
-
`const groundGeo = new THREE.PlaneGeometry(10000, 10000);`
|
|
129
|
-
);
|
|
127
|
+
this.generatedCode.push(`const groundGeo = new THREE.PlaneGeometry(10000, 10000);`);
|
|
130
128
|
this.generatedCode.push(
|
|
131
129
|
`const groundMat = new THREE.MeshStandardMaterial({ color: 0x3a7d3a, roughness: 0.9 });`
|
|
132
130
|
);
|
|
133
|
-
this.generatedCode.push(
|
|
134
|
-
`const ground = new THREE.Mesh(groundGeo, groundMat);`
|
|
135
|
-
);
|
|
131
|
+
this.generatedCode.push(`const ground = new THREE.Mesh(groundGeo, groundMat);`);
|
|
136
132
|
this.generatedCode.push(`ground.rotation.x = -Math.PI / 2;`);
|
|
137
133
|
this.generatedCode.push(`ground.receiveShadow = true;`);
|
|
138
134
|
this.generatedCode.push(`scene.add(ground);`);
|
|
@@ -146,28 +142,20 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
146
142
|
const safeName = this.escapeStringValue(String(node.name || "geo_object"), "TypeScript");
|
|
147
143
|
this.generatedCode.push(`
|
|
148
144
|
// Geo-anchored: ${safeName} (${lat}, ${lng})`);
|
|
149
|
-
this.generatedCode.push(
|
|
150
|
-
`const marker_${safeName} = new THREE.Group();`
|
|
151
|
-
);
|
|
145
|
+
this.generatedCode.push(`const marker_${safeName} = new THREE.Group();`);
|
|
152
146
|
this.generatedCode.push(
|
|
153
147
|
`marker_${safeName}.position.copy(vrr.geoToSceneCoords(${lat}, ${lng}));`
|
|
154
148
|
);
|
|
155
|
-
this.generatedCode.push(
|
|
156
|
-
`marker_${safeName}.userData.geo = { lat: ${lat}, lng: ${lng} };`
|
|
157
|
-
);
|
|
149
|
+
this.generatedCode.push(`marker_${safeName}.userData.geo = { lat: ${lat}, lng: ${lng} };`);
|
|
158
150
|
this.generatedCode.push(`phoenix_downtown.add(marker_${safeName});`);
|
|
159
151
|
}
|
|
160
152
|
this.generatedCode.push(`
|
|
161
153
|
// Skybox`);
|
|
162
|
-
this.generatedCode.push(
|
|
163
|
-
`scene.background = new THREE.Color(0x87ceeb);`
|
|
164
|
-
);
|
|
154
|
+
this.generatedCode.push(`scene.background = new THREE.Color(0x87ceeb);`);
|
|
165
155
|
this.generatedCode.push(`
|
|
166
156
|
// Render loop`);
|
|
167
157
|
this.generatedCode.push(`renderer.shadowMap.enabled = true;`);
|
|
168
|
-
this.generatedCode.push(
|
|
169
|
-
`renderer.shadowMap.type = THREE.PCFSoftShadowMap;`
|
|
170
|
-
);
|
|
158
|
+
this.generatedCode.push(`renderer.shadowMap.type = THREE.PCFSoftShadowMap;`);
|
|
171
159
|
this.generatedCode.push(`function animate() {`);
|
|
172
160
|
this.generatedCode.push(` requestAnimationFrame(animate);`);
|
|
173
161
|
this.generatedCode.push(` vrr.tick();`);
|
|
@@ -197,19 +185,11 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
197
185
|
this.generatedCode.push(` location: vrr.getGeoCenter(),`);
|
|
198
186
|
this.generatedCode.push(`});`);
|
|
199
187
|
this.generatedCode.push(`const rainGeometry = new THREE.BufferGeometry();`);
|
|
200
|
-
this.generatedCode.push(
|
|
201
|
-
`const rainPositions = new Float32Array(3000 * 3);`
|
|
202
|
-
);
|
|
188
|
+
this.generatedCode.push(`const rainPositions = new Float32Array(3000 * 3);`);
|
|
203
189
|
this.generatedCode.push(`for (let i = 0; i < 3000; i++) {`);
|
|
204
|
-
this.generatedCode.push(
|
|
205
|
-
|
|
206
|
-
);
|
|
207
|
-
this.generatedCode.push(
|
|
208
|
-
` rainPositions[i * 3 + 1] = Math.random() * 200;`
|
|
209
|
-
);
|
|
210
|
-
this.generatedCode.push(
|
|
211
|
-
` rainPositions[i * 3 + 2] = (Math.random() - 0.5) * 500;`
|
|
212
|
-
);
|
|
190
|
+
this.generatedCode.push(` rainPositions[i * 3] = (Math.random() - 0.5) * 500;`);
|
|
191
|
+
this.generatedCode.push(` rainPositions[i * 3 + 1] = Math.random() * 200;`);
|
|
192
|
+
this.generatedCode.push(` rainPositions[i * 3 + 2] = (Math.random() - 0.5) * 500;`);
|
|
213
193
|
this.generatedCode.push(`}`);
|
|
214
194
|
this.generatedCode.push(
|
|
215
195
|
`rainGeometry.setAttribute('position', new THREE.BufferAttribute(rainPositions, 3));`
|
|
@@ -217,40 +197,28 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
217
197
|
this.generatedCode.push(
|
|
218
198
|
`const rainMaterial = new THREE.PointsMaterial({ color: 0xaaaaaa, size: 0.1, transparent: true });`
|
|
219
199
|
);
|
|
220
|
-
this.generatedCode.push(
|
|
221
|
-
`const rainSystem = new THREE.Points(rainGeometry, rainMaterial);`
|
|
222
|
-
);
|
|
200
|
+
this.generatedCode.push(`const rainSystem = new THREE.Points(rainGeometry, rainMaterial);`);
|
|
223
201
|
this.generatedCode.push(`rainSystem.visible = false;`);
|
|
224
202
|
this.generatedCode.push(`scene.add(rainSystem);`);
|
|
225
203
|
this.generatedCode.push(`weatherSync_${safeName}.onUpdate((weather) => {`);
|
|
226
|
-
this.generatedCode.push(
|
|
227
|
-
` // Update fog based on visibility`
|
|
228
|
-
);
|
|
204
|
+
this.generatedCode.push(` // Update fog based on visibility`);
|
|
229
205
|
this.generatedCode.push(
|
|
230
206
|
` scene.fog = new THREE.Fog(0xcccccc, 10, Math.max(weather.visibility, 50));`
|
|
231
207
|
);
|
|
232
208
|
this.generatedCode.push(` // Toggle rain particles`);
|
|
233
|
-
this.generatedCode.push(
|
|
234
|
-
` rainSystem.visible = weather.precipitation > 0;`
|
|
235
|
-
);
|
|
209
|
+
this.generatedCode.push(` rainSystem.visible = weather.precipitation > 0;`);
|
|
236
210
|
this.generatedCode.push(` // Adjust sun intensity based on cloud cover`);
|
|
237
211
|
this.generatedCode.push(
|
|
238
212
|
` directionalLight.intensity = Math.max(0.2, 1.0 - (weather.cloud_cover || 0) / 100);`
|
|
239
213
|
);
|
|
240
214
|
this.generatedCode.push(` // Update skybox color`);
|
|
241
|
-
this.generatedCode.push(
|
|
242
|
-
|
|
243
|
-
);
|
|
244
|
-
this.generatedCode.push(
|
|
245
|
-
` scene.background = new THREE.Color(skyHue);`
|
|
246
|
-
);
|
|
215
|
+
this.generatedCode.push(` const skyHue = weather.precipitation > 50 ? 0x666680 : 0x87ceeb;`);
|
|
216
|
+
this.generatedCode.push(` scene.background = new THREE.Color(skyHue);`);
|
|
247
217
|
this.generatedCode.push(` // Temperature-based ambient tint`);
|
|
248
218
|
this.generatedCode.push(
|
|
249
219
|
` const tempNorm = Math.max(0, Math.min(1, (weather.temperature_f || 70) / 120));`
|
|
250
220
|
);
|
|
251
|
-
this.generatedCode.push(
|
|
252
|
-
` ambientLight.color.setHSL(0.6 - tempNorm * 0.4, 0.3, 0.4);`
|
|
253
|
-
);
|
|
221
|
+
this.generatedCode.push(` ambientLight.color.setHSL(0.6 - tempNorm * 0.4, 0.3, 0.4);`);
|
|
254
222
|
this.generatedCode.push(`});`);
|
|
255
223
|
}
|
|
256
224
|
}
|
|
@@ -280,7 +248,9 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
280
248
|
this.generatedCode.push(`eventSync_${safeName}.onUpdate((events) => {`);
|
|
281
249
|
this.generatedCode.push(` // Clear previous markers`);
|
|
282
250
|
this.generatedCode.push(` while (eventMarkers_${safeName}.children.length > 0) {`);
|
|
283
|
-
this.generatedCode.push(
|
|
251
|
+
this.generatedCode.push(
|
|
252
|
+
` eventMarkers_${safeName}.remove(eventMarkers_${safeName}.children[0]);`
|
|
253
|
+
);
|
|
284
254
|
this.generatedCode.push(` }`);
|
|
285
255
|
this.generatedCode.push(` for (const evt of events) {`);
|
|
286
256
|
this.generatedCode.push(` // Create event marker billboard`);
|
|
@@ -290,13 +260,19 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
290
260
|
);
|
|
291
261
|
this.generatedCode.push(` const marker = new THREE.Mesh(markerGeo, markerMat);`);
|
|
292
262
|
this.generatedCode.push(` if (evt.geo) {`);
|
|
293
|
-
this.generatedCode.push(
|
|
263
|
+
this.generatedCode.push(
|
|
264
|
+
` marker.position.copy(vrr.geoToSceneCoords(evt.geo.lat, evt.geo.lng));`
|
|
265
|
+
);
|
|
294
266
|
this.generatedCode.push(` }`);
|
|
295
|
-
this.generatedCode.push(
|
|
267
|
+
this.generatedCode.push(
|
|
268
|
+
` marker.userData.event = { name: evt.name, date: evt.date, url: evt.url };`
|
|
269
|
+
);
|
|
296
270
|
this.generatedCode.push(` eventMarkers_${safeName}.add(marker);`);
|
|
297
271
|
this.generatedCode.push(` // Spawn NPC crowds for active events`);
|
|
298
272
|
this.generatedCode.push(` if (evt.status === 'active') {`);
|
|
299
|
-
this.generatedCode.push(
|
|
273
|
+
this.generatedCode.push(
|
|
274
|
+
` vrr.spawnNPCCrowd(marker.position, evt.expected_attendance || 20);`
|
|
275
|
+
);
|
|
300
276
|
this.generatedCode.push(` }`);
|
|
301
277
|
this.generatedCode.push(` }`);
|
|
302
278
|
this.generatedCode.push(`});`);
|
|
@@ -330,15 +306,25 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
330
306
|
this.generatedCode.push(`inventorySync_${safeName}.onUpdate((inventory) => {`);
|
|
331
307
|
this.generatedCode.push(` // Clear previous inventory display`);
|
|
332
308
|
this.generatedCode.push(` while (inventoryUI_${safeName}.children.length > 0) {`);
|
|
333
|
-
this.generatedCode.push(
|
|
309
|
+
this.generatedCode.push(
|
|
310
|
+
` inventoryUI_${safeName}.remove(inventoryUI_${safeName}.children[0]);`
|
|
311
|
+
);
|
|
334
312
|
this.generatedCode.push(` }`);
|
|
335
313
|
this.generatedCode.push(` for (const item of inventory.items) {`);
|
|
336
|
-
this.generatedCode.push(
|
|
337
|
-
|
|
314
|
+
this.generatedCode.push(
|
|
315
|
+
` // Availability badge color: green=in-stock, yellow=low, red=out`
|
|
316
|
+
);
|
|
317
|
+
this.generatedCode.push(
|
|
318
|
+
` const badgeColor = item.quantity > 10 ? 0x00ff00 : item.quantity > 0 ? 0xffaa00 : 0xff0000;`
|
|
319
|
+
);
|
|
338
320
|
this.generatedCode.push(` const badgeGeo = new THREE.SphereGeometry(0.3, 8, 8);`);
|
|
339
|
-
this.generatedCode.push(
|
|
321
|
+
this.generatedCode.push(
|
|
322
|
+
` const badgeMat = new THREE.MeshStandardMaterial({ color: badgeColor, emissive: badgeColor, emissiveIntensity: 0.5 });`
|
|
323
|
+
);
|
|
340
324
|
this.generatedCode.push(` const badge = new THREE.Mesh(badgeGeo, badgeMat);`);
|
|
341
|
-
this.generatedCode.push(
|
|
325
|
+
this.generatedCode.push(
|
|
326
|
+
` badge.userData.product = { name: item.name, quantity: item.quantity, price: item.price };`
|
|
327
|
+
);
|
|
342
328
|
this.generatedCode.push(` inventoryUI_${safeName}.add(badge);`);
|
|
343
329
|
this.generatedCode.push(` }`);
|
|
344
330
|
this.generatedCode.push(`});`);
|
|
@@ -367,9 +353,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
367
353
|
this.generatedCode.push(
|
|
368
354
|
`const questBeacon_${safeName} = new THREE.PointLight(0xffdd00, 2, 30);`
|
|
369
355
|
);
|
|
370
|
-
this.generatedCode.push(
|
|
371
|
-
`questBeacon_${safeName}.position.set(0, 5, 0);`
|
|
372
|
-
);
|
|
356
|
+
this.generatedCode.push(`questBeacon_${safeName}.position.set(0, 5, 0);`);
|
|
373
357
|
this.generatedCode.push(
|
|
374
358
|
`if (marker_${safeName}) marker_${safeName}.add(questBeacon_${safeName});`
|
|
375
359
|
);
|
|
@@ -396,9 +380,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
396
380
|
this.generatedCode.push(` // Grant reward (coupon, NFT, etc.)`);
|
|
397
381
|
this.generatedCode.push(` vrr.grantReward(quest.id, reward);`);
|
|
398
382
|
this.generatedCode.push(` // Visual celebration`);
|
|
399
|
-
this.generatedCode.push(
|
|
400
|
-
` questBeacon_${safeName}.color.setHex(0x00ff00);`
|
|
401
|
-
);
|
|
383
|
+
this.generatedCode.push(` questBeacon_${safeName}.color.setHex(0x00ff00);`);
|
|
402
384
|
this.generatedCode.push(`});`);
|
|
403
385
|
}
|
|
404
386
|
}
|
|
@@ -508,9 +490,7 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
508
490
|
this.generatedCode.push(` 'X-Payment-Amount': '${price}',`);
|
|
509
491
|
this.generatedCode.push(` 'X-Payment-Asset': '${asset}',`);
|
|
510
492
|
this.generatedCode.push(` 'X-Payment-Network': '${network}',`);
|
|
511
|
-
this.generatedCode.push(
|
|
512
|
-
` 'X-Payment-Address': vrr.getPaymentAddress('${safeName}'),`
|
|
513
|
-
);
|
|
493
|
+
this.generatedCode.push(` 'X-Payment-Address': vrr.getPaymentAddress('${safeName}'),`);
|
|
514
494
|
this.generatedCode.push(` },`);
|
|
515
495
|
this.generatedCode.push(` };`);
|
|
516
496
|
this.generatedCode.push(` },`);
|
|
@@ -524,8 +504,12 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
524
504
|
this.generatedCode.push(` vrr.unlockContent('${safeName}');`);
|
|
525
505
|
this.generatedCode.push(` },`);
|
|
526
506
|
this.generatedCode.push(` onPaymentFailed: (error) => {`);
|
|
527
|
-
this.generatedCode.push(
|
|
528
|
-
|
|
507
|
+
this.generatedCode.push(
|
|
508
|
+
` console.warn('Payment failed for ${safeName}:', error.message);`
|
|
509
|
+
);
|
|
510
|
+
this.generatedCode.push(
|
|
511
|
+
` vrr.showPaywallUI('${safeName}', { price: ${price}, asset: '${asset}', network: '${network}' });`
|
|
512
|
+
);
|
|
529
513
|
this.generatedCode.push(` },`);
|
|
530
514
|
this.generatedCode.push(`});`);
|
|
531
515
|
}
|
|
@@ -566,28 +550,28 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
566
550
|
const domainBlocks = Array.isArray(comp.domainBlocks) ? comp.domainBlocks : [];
|
|
567
551
|
if (domainBlocks.length > 0) {
|
|
568
552
|
this.generatedCode.push("\n// === v4.2 Domain Blocks ===");
|
|
569
|
-
const compiled =
|
|
553
|
+
const compiled = chunkLXJ4667L_cjs.compileDomainBlocks(
|
|
570
554
|
// @ts-expect-error During migration
|
|
571
555
|
domainBlocks,
|
|
572
556
|
{
|
|
573
557
|
material: (block) => {
|
|
574
|
-
const m =
|
|
558
|
+
const m = chunkLXJ4667L_cjs.compileMaterialBlock(block);
|
|
575
559
|
return `// VRR Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"}`;
|
|
576
560
|
},
|
|
577
561
|
physics: (block) => {
|
|
578
|
-
const p =
|
|
562
|
+
const p = chunkLXJ4667L_cjs.compilePhysicsBlock(block);
|
|
579
563
|
return `// VRR Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0}`;
|
|
580
564
|
},
|
|
581
565
|
vfx: (block) => {
|
|
582
|
-
const ps =
|
|
566
|
+
const ps = chunkLXJ4667L_cjs.compileParticleBlock(block);
|
|
583
567
|
return `// VRR Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"}`;
|
|
584
568
|
},
|
|
585
569
|
audio: (block) => {
|
|
586
|
-
const a =
|
|
570
|
+
const a = chunkLXJ4667L_cjs.compileAudioSourceBlock(block);
|
|
587
571
|
return `// VRR Audio: "${this.escapeStringValue(a.name, "TypeScript")}" clip=${a.properties.clip || "none"}`;
|
|
588
572
|
},
|
|
589
573
|
weather: (block) => {
|
|
590
|
-
const w =
|
|
574
|
+
const w = chunkLXJ4667L_cjs.compileWeatherBlock(block);
|
|
591
575
|
return `// VRR Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
|
|
592
576
|
}
|
|
593
577
|
},
|
|
@@ -651,10 +635,12 @@ var init_VRRCompiler = chunkEGIZHYJP_cjs.__esm({
|
|
|
651
635
|
for (const trait of node.traits) {
|
|
652
636
|
if (trait.name === "geo_anchor")
|
|
653
637
|
geoCenter = { lat: Number(trait.params.lat), lng: Number(trait.params.lng) };
|
|
654
|
-
else if (trait.name === "vrr_twin" && trait.params.mirror)
|
|
638
|
+
else if (trait.name === "vrr_twin" && trait.params.mirror)
|
|
639
|
+
twinId = String(trait.params.mirror);
|
|
655
640
|
else if (trait.name === "weather_sync") weatherProvider = String(trait.params.provider);
|
|
656
641
|
else if (trait.name === "event_sync") eventProvider = String(trait.params.provider);
|
|
657
|
-
else if (trait.name === "inventory_sync")
|
|
642
|
+
else if (trait.name === "inventory_sync")
|
|
643
|
+
inventoryProvider = String(trait.params.provider);
|
|
658
644
|
}
|
|
659
645
|
}
|
|
660
646
|
}
|
|
@@ -745,5 +731,5 @@ const phoenix_downtown = new THREE.Group();`);
|
|
|
745
731
|
|
|
746
732
|
exports.VRRCompiler_exports = VRRCompiler_exports;
|
|
747
733
|
exports.init_VRRCompiler = init_VRRCompiler;
|
|
748
|
-
//# sourceMappingURL=chunk-
|
|
749
|
-
//# sourceMappingURL=chunk-
|
|
734
|
+
//# sourceMappingURL=chunk-LGGRPKTV.cjs.map
|
|
735
|
+
//# sourceMappingURL=chunk-LGGRPKTV.cjs.map
|